Commit b694b642 authored by Antoine Cellerier's avatar Antoine Cellerier

Oops. b_demux should be flase

parent 2ebc21a4
...@@ -1068,7 +1068,7 @@ static int AccessOpen( vlc_object_t * p_this ) ...@@ -1068,7 +1068,7 @@ static int AccessOpen( vlc_object_t * p_this )
{ {
msg_Dbg( p_this, "Trying direct kernel v4l2" ); msg_Dbg( p_this, "Trying direct kernel v4l2" );
use_kernel_v4l2( p_sys ); use_kernel_v4l2( p_sys );
if( FindMainDevice( p_this, p_sys, true ) == VLC_SUCCESS) if( FindMainDevice( p_this, p_sys, false ) == VLC_SUCCESS)
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -1854,6 +1854,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux ) ...@@ -1854,6 +1854,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
ControlList( p_obj, p_sys, i_fd, ControlList( p_obj, p_sys, i_fd,
var_GetBool( p_obj, "v4l2-controls-reset" ), b_demux ); var_GetBool( p_obj, "v4l2-controls-reset" ), b_demux );
SetAvailControlsByString( p_obj, p_sys, i_fd ); SetAvailControlsByString( p_obj, p_sys, i_fd );
if( false == b_demux) if( false == b_demux)
{ {
return i_fd; return i_fd;
...@@ -1867,7 +1868,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux ) ...@@ -1867,7 +1868,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
case IO_METHOD_READ: case IO_METHOD_READ:
if( !(p_sys->dev_cap.capabilities & V4L2_CAP_READWRITE) ) if( !(p_sys->dev_cap.capabilities & V4L2_CAP_READWRITE) )
{ {
msg_Err( p_demux, "device does not support read i/o" ); msg_Err( p_obj, "device does not support read i/o" );
goto open_failed; goto open_failed;
} }
break; break;
...@@ -1876,13 +1877,13 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux ) ...@@ -1876,13 +1877,13 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
case IO_METHOD_USERPTR: case IO_METHOD_USERPTR:
if( !(p_sys->dev_cap.capabilities & V4L2_CAP_STREAMING) ) if( !(p_sys->dev_cap.capabilities & V4L2_CAP_STREAMING) )
{ {
msg_Err( p_demux, "device does not support streaming i/o" ); msg_Err( p_obj, "device does not support streaming i/o" );
goto open_failed; goto open_failed;
} }
break; break;
default: default:
msg_Err( p_demux, "io method not supported" ); msg_Err( p_obj, "io method not supported" );
goto open_failed; goto open_failed;
} }
......
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