[vlc-devel] commit: qtcapture: Don't probe qtcapture access if not selected. (Pierre d' Herbemont )
git version control
git at videolan.org
Wed May 28 13:08:24 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed May 28 13:07:56 2008 +0200| [d4e0e3d40ea8c451ff84bfa9a98d1668bb6063aa]
qtcapture: Don't probe qtcapture access if not selected.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4e0e3d40ea8c451ff84bfa9a98d1668bb6063aa
---
modules/access/qtcapture.m | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/access/qtcapture.m b/modules/access/qtcapture.m
index c2ef2e6..f12e0a4 100644
--- a/modules/access/qtcapture.m
+++ b/modules/access/qtcapture.m
@@ -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" );
More information about the vlc-devel
mailing list