[vlc-commits] commit: imem: mark MRL options as safe ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Tue Mar 30 16:53:07 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 30 17:51:48 2010 +0300| [0ba6c728e068c462bcaf51c52e2e7bfb9d77aee9] | committer: Rémi Denis-Courmont
imem: mark MRL options as safe
If they can be passed through the MRL, there is no extra exposure in
passing them as options.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ba6c728e068c462bcaf51c52e2e7bfb9d77aee9
---
modules/access/imem.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/modules/access/imem.c b/modules/access/imem.c
index ac7cf38..222a770 100644
--- a/modules/access/imem.c
+++ b/modules/access/imem.c
@@ -125,34 +125,46 @@ vlc_module_begin()
change_volatile()
add_string ("imem-cookie", NULL, NULL, COOKIE_TEXT, COOKIE_LONGTEXT, true)
change_volatile()
+ change_safe()
add_string ("imem-data", "0", NULL, DATA_TEXT, DATA_LONGTEXT, true)
change_volatile()
add_integer("imem-id", -1, NULL, ID_TEXT, ID_LONGTEXT, true)
change_private()
+ change_safe()
add_integer("imem-group", 0, NULL, GROUP_TEXT, GROUP_LONGTEXT, true)
change_private()
+ change_safe()
add_integer("imem-cat", 0, NULL, CAT_TEXT, CAT_LONGTEXT, true)
change_integer_list(cat_values, cat_texts, NULL)
change_private()
+ change_safe()
add_string ("imem-codec", NULL, NULL, CODEC_TEXT, CODEC_LONGTEXT, true)
change_private()
+ change_safe()
add_string( "imem-language", NULL, NULL, LANGUAGE_TEXT, LANGUAGE_LONGTEXT, false)
change_private()
+ change_safe()
add_integer("imem-samplerate", 0, NULL, SAMPLERATE_TEXT, SAMPLERATE_LONGTEXT, true)
change_private()
+ change_safe()
add_integer("imem-channels", 0, NULL, CHANNELS_TEXT, CHANNELS_LONGTEXT, true)
change_private()
+ change_safe()
add_integer("imem-width", 0, NULL, WIDTH_TEXT, WIDTH_LONGTEXT, true)
change_private()
+ change_safe()
add_integer("imem-height", 0, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT, true)
change_private()
+ change_safe()
add_string ("imem-dar", NULL, NULL, DAR_TEXT, DAR_LONGTEXT, true)
change_private()
+ change_safe()
add_string ("imem-fps", NULL, NULL, FPS_TEXT, FPS_LONGTEXT, true)
change_private()
+ change_safe()
add_shortcut("imem")
set_capability("access_demux", 0)
More information about the vlc-commits
mailing list