[vlc-commits] v4l2: device parameter is a file path

Rémi Denis-Courmont git at videolan.org
Mon Apr 9 22:00:14 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr  9 22:58:57 2012 +0300| [4c09ad19963e3940e2ef3be43843d4902afebcd7] | committer: Rémi Denis-Courmont

v4l2: device parameter is a file path

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

 modules/access/v4l2/video.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 7afa68a..ef66048 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -302,8 +302,8 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_INPUT_ACCESS )
 
     set_section( N_( "Video input" ), NULL )
-    add_string( CFG_PREFIX "dev", "/dev/video0", DEVICE_TEXT, DEVICE_LONGTEXT,
-                 false )
+    add_loadfile( CFG_PREFIX "dev", "/dev/video0",
+                  DEVICE_TEXT, DEVICE_LONGTEXT, false )
         change_safe()
     add_string( CFG_PREFIX "standard", "",
                 STANDARD_TEXT, STANDARD_LONGTEXT, false )



More information about the vlc-commits mailing list