Commit d8a051a2 authored by Laurent Aimar's avatar Laurent Aimar

Fixed compilation of v4l2 + refuse to initialize unless it is forced.

parent a553f31a
......@@ -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;
......
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