Commit 6e5903e8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

V4L2: set correct value for v4l2-standard and never overflow

(cherry picked from commit 6f1f23fb4cb5ba05e299530a05d6887143ff9335)
parent 271f970e
...@@ -712,8 +712,7 @@ static void GetV4L2Params( demux_sys_t *p_sys, vlc_object_t *p_obj ) ...@@ -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_video_pts = -1;
p_sys->i_selected_standard_id = 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_input = var_CreateGetInteger( p_obj, "v4l2-input" );
p_sys->i_selected_audio_input = p_sys->i_selected_audio_input =
var_CreateGetInteger( p_obj, "v4l2-audio-input" ); var_CreateGetInteger( p_obj, "v4l2-audio-input" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment