Commit e907794a authored by Clément Stenac's avatar Clément Stenac

Don't disable audio if V4L video dev does not have an audio dev too. Closes:#254

Thanks to Timothy Lee < timothy d0t lee @t siriushk d0t c0m > for the patch.
parent 2eb3e28b
...@@ -900,7 +900,7 @@ static int OpenVideoDev( demux_t *p_demux, char *psz_device ) ...@@ -900,7 +900,7 @@ static int OpenVideoDev( demux_t *p_demux, char *psz_device )
msg_Dbg( p_demux, "invalid channel, falling back on channel 0" ); msg_Dbg( p_demux, "invalid channel, falling back on channel 0" );
p_sys->i_channel = 0; p_sys->i_channel = 0;
} }
if( p_sys->i_audio >= p_sys->vid_cap.audios ) if( p_sys->vid_cap.audios && p_sys->i_audio >= p_sys->vid_cap.audios )
{ {
msg_Dbg( p_demux, "invalid audio, falling back with no audio" ); msg_Dbg( p_demux, "invalid audio, falling back with no audio" );
p_sys->i_audio = -1; p_sys->i_audio = -1;
......
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