[vlc-commits] Mark dvb-adapter as safe (fix #5503)

Rémi Denis-Courmont git at videolan.org
Tue Nov 1 16:52:11 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov  1 17:48:44 2011 +0200| [db97e8e782300e1d5b8c8a02d137fc8c62fae040] | committer: Rémi Denis-Courmont

Mark dvb-adapter as safe (fix #5503)

Just about every other capture mechanism allows selecting the device
from the MRL, so we might as well support it for DVB. The playlist will
only work on a specific system, but it should still be safe.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db97e8e782300e1d5b8c8a02d137fc8c62fae040
---

 modules/access/dtv/access.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index 0e2ed57..142e519 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -241,11 +241,13 @@ vlc_module_begin ()
 #ifdef __linux__
     add_integer ("dvb-adapter", 0, ADAPTER_TEXT, ADAPTER_LONGTEXT, false)
         change_integer_range (0, 255)
+        change_safe ()
     add_obsolete_integer ("dvb-device")
     add_bool ("dvb-budget-mode", false, BUDGET_TEXT, BUDGET_LONGTEXT, true)
 #endif
 #ifdef WIN32
     add_integer ("dvb-adapter", -1, ADAPTER_TEXT, ADAPTER_LONGTEXT, true)
+        change_safe ()
     add_string ("dvb-network-name", "", NAME_TEXT, NAME_LONGTEXT, true)
     /* Hmm: is this one really safe??: */
     add_string ("dvb-create-name", "", CREATE_TEXT, CREATE_LONGTEXT, true)



More information about the vlc-commits mailing list