]> git.sesse.net Git - vlc/commitdiff
sout_standard: fix inverted logic
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 10 Oct 2014 20:04:24 +0000 (23:04 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 10 Oct 2014 20:06:47 +0000 (23:06 +0300)
Regression from c9d33a6123bb499cce31b4cf469ae40e8c9e9b6c.

modules/stream_out/standard.c

index 03d7336b0c74a4bcbd44af8261995694cc22d6f5..a386801421967d1a08a04d0fc71736657b04b0e5 100644 (file)
@@ -306,7 +306,7 @@ static void checkAccessMux( sout_stream_t *p_stream, char *psz_access,
 {
     if( exactMatch( psz_access, "mmsh", 4 ) && !exactMatch( psz_mux, "asfh", 4 ) )
         msg_Err( p_stream, "mmsh output is only valid with asfh mux" );
-    else if( exactMatch( psz_access, "file", 4 ) &&
+    else if( !exactMatch( psz_access, "file", 4 ) &&
              ( exactMatch( psz_mux, "mov", 3 ) || exactMatch( psz_mux, "mp4", 3 ) ) )
         msg_Err( p_stream, "mov and mp4 mux are only valid with file output" );
     else if( exactMatch( psz_access, "udp", 3 ) )