[FFmpeg-cvslog] r13370 - trunk/ffserver.c

bcoudurier subversion
Sun May 25 02:12:53 CEST 2008


Author: bcoudurier
Date: Sun May 25 02:12:53 2008
New Revision: 13370

Log:
better error message

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sun May 25 02:12:53 2008
@@ -1887,7 +1887,7 @@ static int open_input_stream(HTTPContext
     char buf[128];
     char input_filename[1024];
     AVFormatContext *s;
-    int buf_size, i;
+    int buf_size, i, ret;
     int64_t stream_pos;
 
     /* find file name */
@@ -1929,9 +1929,9 @@ static int open_input_stream(HTTPContext
 #endif
 
     /* open stream */
-    if (av_open_input_file(&s, input_filename, c->stream->ifmt,
-                           buf_size, c->stream->ap_in) < 0) {
-        http_log("%s not found", input_filename);
+    if ((ret = av_open_input_file(&s, input_filename, c->stream->ifmt,
+                                  buf_size, c->stream->ap_in)) < 0) {
+        http_log("could not open %s: %d\n", input_filename, ret);
         return -1;
     }
     s->flags |= AVFMT_FLAG_GENPTS;




More information about the ffmpeg-cvslog mailing list