diff mencoder.c @ 8925:5c15777f1c07

this patch adds an fallback to playlist (any but the plaintext-list format) after all demuxers failed. so -playlist is not needed any more! patch by Fabian Franz <FabianFranz@gmx.de>, with some small modifications
author arpi
date Sun, 12 Jan 2003 19:41:38 +0000
parents 97a26dea07bb
children ec8af5150ea2
line wrap: on
line diff
--- a/mencoder.c	Sun Jan 12 19:32:56 2003 +0000
+++ b/mencoder.c	Sun Jan 12 19:41:38 2003 +0000
@@ -391,6 +391,7 @@
   if(stream2){
     demuxer2=demux_open(stream2,DEMUXER_TYPE_AVI,-1,-1,-2);
     if(demuxer2) printf(MSGTR_UsingPass3ControllFile,frameno_filename);
+    else mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized);
   }
 
   // New config code
@@ -493,6 +494,7 @@
   //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
   demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);
   if(!demuxer){
+        mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized);
 	printf(MSGTR_CannotOpenDemuxer);
 	mencoder_exit(1,NULL);
   }