* standard: fixed a segfault.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 6 Jun 2004 18:55:10 +0000 (18:55 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 6 Jun 2004 18:55:10 +0000 (18:55 +0000)
modules/stream_out/standard.c

index 64b84b6..8baee6e 100644 (file)
@@ -223,10 +223,15 @@ static int Open( vlc_object_t *p_this )
         {
             psz_mux = strdup("ts");
         }
-        else
+        else if( psz_mux_byext )
         {
             psz_mux = strdup(psz_mux_byext);
         }
+        else
+        {
+            msg_Err( p_stream, "no mux specified or found by extention" );
+            return VLC_EGENERIC;
+        }
     }
     else if( psz_mux && !psz_access )
     {