From: Joseph Tulou Date: Tue, 30 Dec 2008 14:34:00 +0000 (+0100) Subject: test if access dc1394 is right earlier in the probing process to avoid side effect... X-Git-Tag: 1.0.0-pre1~1599 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=950a8cc26193f2512f5d1b5efd0a0ca49f5ca23d;p=vlc test if access dc1394 is right earlier in the probing process to avoid side effect (irrelevant errors) for others. Signed-off-by: Jean-Paul Saman --- diff --git a/THANKS b/THANKS index 84934b9cbb..ef872888cb 100644 --- a/THANKS +++ b/THANKS @@ -137,6 +137,7 @@ Jean-François Massol gmail.com> - Qt4 Sout work Jérôme Guilbaud - Update of the WinAmp 5 VLC skin Joel Arvidsson - Swedish translation Joeri van Dooren - OS X icon (v0.4.0) +Joseph Tulou - small dc1394 patch Jörg - VLM seek/show media functions Johannes Buchner - Hotkeys for zoom Johen Michael Zorko - fix for delay issues in udp sout diff --git a/modules/access/dc1394.c b/modules/access/dc1394.c index 18ad44d04b..9fa05aa8f5 100644 --- a/modules/access/dc1394.c +++ b/modules/access/dc1394.c @@ -218,6 +218,9 @@ static int Open( vlc_object_t *p_this ) int i_aspect; int result = 0; + if( strncmp(p_demux->psz_access, "dc1394", 6) != 0 ) + return VLC_EGENERIC; + /* Set up p_demux */ p_demux->pf_demux = Demux; p_demux->pf_control = Control; @@ -834,9 +837,6 @@ static int process_options( demux_t *p_demux ) char *state = NULL; float rate_f; - if( strncmp(p_demux->psz_access, "dc1394", 6) != 0 ) - return VLC_EGENERIC; - psz_dup = strdup( p_demux->psz_path ); psz_parser = psz_dup; for( token = strtok_r( psz_parser,":",&state); token;