diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-24 02:34:19 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-24 02:34:19 +0000 |
commit | f61d45c99e410876ad6cb0a87d2af0ebeea18be3 (patch) | |
tree | 00765cc797b592d4e457f59cee97701ab2149b26 /ffserver.c | |
parent | 1692008f518eb5ffc678483ea178518d45a0e1ae (diff) | |
download | ffmpeg-f61d45c99e410876ad6cb0a87d2af0ebeea18be3.tar.gz |
better error message
Originally committed as revision 13272 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ffserver.c b/ffserver.c index a32e11aa00..9bb9f89a12 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3302,7 +3302,7 @@ static void build_file_streams(void) { FFStream *stream, *stream_next; AVFormatContext *infile; - int i; + int i, ret; /* gather all streams */ for(stream = first_stream; stream != NULL; stream = stream_next) { @@ -3320,9 +3320,9 @@ static void build_file_streams(void) stream->ap_in->mpeg2ts_compute_pcr = 1; } - if (av_open_input_file(&infile, stream->feed_filename, - stream->ifmt, 0, stream->ap_in) < 0) { - http_log("%s not found", stream->feed_filename); + if ((ret = av_open_input_file(&infile, stream->feed_filename, + stream->ifmt, 0, stream->ap_in)) < 0) { + http_log("could not open %s: %d\n", stream->feed_filename, ret); /* remove stream (no need to spend more time on it) */ fail: remove_stream(stream); |