ParseMRL( p_sys, p_demux->psz_path, (vlc_object_t *) p_demux );
#ifdef HAVE_LIBV4L2
- if( !config_GetInt( p_this, CFG_PREFIX "use-libv4l2" ) )
+ if( !var_InheritInteger( p_this, CFG_PREFIX "use-libv4l2" ) )
{
msg_Dbg( p_this, "Trying direct kernel v4l2" );
use_kernel_v4l2( p_sys );
ParseMRL( p_sys, p_access->psz_path, (vlc_object_t *) p_access );
#ifdef HAVE_LIBV4L2
- if( !config_GetInt( p_this, CFG_PREFIX "use-libv4l2" ) )
+ if( !var_InheritInteger( p_this, CFG_PREFIX "use-libv4l2" ) )
{
msg_Dbg( p_this, "Trying direct kernel v4l2" );
use_kernel_v4l2( p_sys );