[vlc-commits] V4L2: set correct value for v4l2-standard and never overflow
Rémi Denis-Courmont
git at videolan.org
Wed Jun 1 21:50:17 CEST 2011
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 1 22:42:48 2011 +0300| [6e5903e8da67c8073c8f071438f157572f2753c3] | committer: Rémi Denis-Courmont
V4L2: set correct value for v4l2-standard and never overflow
(cherry picked from commit 6f1f23fb4cb5ba05e299530a05d6887143ff9335)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=6e5903e8da67c8073c8f071438f157572f2753c3
---
modules/access/v4l2.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index ecde777..b8449d1 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -712,8 +712,7 @@ static void GetV4L2Params( demux_sys_t *p_sys, vlc_object_t *p_obj )
p_sys->i_video_pts = -1;
p_sys->i_selected_standard_id =
- i_standards_list[var_CreateGetInteger( p_obj, "v4l2-standard" )];
-
+ var_CreateGetInteger( p_obj, "v4l2-standard" );
p_sys->i_selected_input = var_CreateGetInteger( p_obj, "v4l2-input" );
p_sys->i_selected_audio_input =
var_CreateGetInteger( p_obj, "v4l2-audio-input" );
More information about the vlc-commits
mailing list