]> git.sesse.net Git - mlt/commitdiff
Fix regression in protocol/avdevice handling.
authorDan Dennedy <dan@dennedy.org>
Sun, 22 May 2011 18:26:01 +0000 (11:26 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 22 May 2011 18:26:01 +0000 (11:26 -0700)
src/modules/avformat/producer_avformat.c

index e1f88def11d6ea45b0e93b6cfd7ef2fbb47dc8b6..c659dc79faab736800f7a3a35848dd1231ffe87e 100644 (file)
@@ -562,7 +562,7 @@ static int producer_open( producer_avformat self, mlt_profile profile, char *fil
 
        // Only if there is not a protocol specification that avformat can handle
 #if LIBAVFORMAT_VERSION_MAJOR > 52
-       if ( mrl && !avio_check( file, 0 ) )
+       if ( mrl && avio_check( file, 0 ) < 0 )
 #else
        if ( mrl && !url_exist( file ) )
 #endif