* standard: fixed a segfault.
[vlc.git] / 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 )
     {