Commit d4e0e3d4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

qtcapture: Don't probe qtcapture access if not selected.

parent b818dbc6
......@@ -55,7 +55,7 @@ vlc_module_begin();
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_ACCESS );
add_shortcut( "qtcapture" );
set_capability( "access_demux", 10 );
set_capability( "access_demux", 0 );
set_callbacks( Open, Close );
vlc_module_end();
......@@ -189,6 +189,10 @@ static int Open( vlc_object_t *p_this )
p_demux->info.i_title = 0;
p_demux->info.i_seekpoint = 0;
/* Only when selected */
if( *p_demux->psz_access == '\0' )
return VLC_EGENERIC;
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
msg_Dbg( p_demux, "QTCapture Probed" );
......
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