mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
Fixed compilation of v4l2 + refuse to initialize unless it is forced.
This commit is contained in:
parent
a553f31aa9
commit
d8a051a2cc
@ -29,6 +29,7 @@
|
||||
|
||||
#include <vlc/vlc.h>
|
||||
#include <vlc_access.h>
|
||||
#include <vlc_demux.h>
|
||||
#include <vlc_input.h>
|
||||
#include <vlc_vout.h>
|
||||
|
||||
@ -124,6 +125,10 @@ static int Open( vlc_object_t *p_this )
|
||||
demux_sys_t *p_sys;
|
||||
demux_sys_t sys;
|
||||
|
||||
/* Only when selected */
|
||||
if( *p_demux->psz_access == '\0' )
|
||||
return VLC_EGENERIC;
|
||||
|
||||
/* Set up p_demux */
|
||||
p_demux->pf_control = Control;
|
||||
p_demux->info.i_update = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user