[vlc-commits] commit: Fix segfault in Qt adv_prefs caused by Null text. ( Francois Cartegnie )
git at videolan.org
git at videolan.org
Tue Dec 21 19:54:14 CET 2010
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 21 19:37:29 2010 +0100| [292e05753096d4649b6217f43f1518b7e9dc8449] | committer: Francois Cartegnie
Fix segfault in Qt adv_prefs caused by Null text.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=292e05753096d4649b6217f43f1518b7e9dc8449
---
modules/access/http.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index 899c838..a3b29ba 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -105,6 +105,12 @@ static void Close( vlc_object_t * );
"server for all URL. Don't take into account bypasses settings and auto " \
"configuration scripts.")
+#define REFERER_TEXT N_("HTTP referer value")
+#define REFERER_LONGTEXT N_("Customize the HTTP referer, simulating a previous document")
+
+#define UA_TEXT N_("User Agent")
+#define UA_LONGTEXT N_("You can use a custom User agent or use a known one")
+
vlc_module_begin ()
set_description( N_("HTTP input") )
set_capability( "access", 0 )
@@ -119,9 +125,9 @@ vlc_module_begin ()
add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
- add_string( "http-referrer", NULL, NULL, NULL, false )
+ add_string( "http-referrer", NULL, REFERER_TEXT, REFERER_LONGTEXT, false )
change_safe()
- add_string( "http-user-agent", NULL, NULL, NULL, false )
+ add_string( "http-user-agent", NULL, UA_TEXT, UA_LONGTEXT, false )
change_safe()
change_private()
add_bool( "http-reconnect", false, RECONNECT_TEXT,
More information about the vlc-commits
mailing list