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

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


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

v4l2: device parameter is a file path

(cherry picked from commit 4c09ad19963e3940e2ef3be43843d4902afebcd7)

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

 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 938215d..5324512 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -306,8 +306,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