Commit f61d45c9 authored by Baptiste Coudurier's avatar Baptiste Coudurier

better error message

Originally committed as revision 13272 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1692008f
...@@ -3302,7 +3302,7 @@ static void build_file_streams(void) ...@@ -3302,7 +3302,7 @@ static void build_file_streams(void)
{ {
FFStream *stream, *stream_next; FFStream *stream, *stream_next;
AVFormatContext *infile; AVFormatContext *infile;
int i; int i, ret;
/* gather all streams */ /* gather all streams */
for(stream = first_stream; stream != NULL; stream = stream_next) { for(stream = first_stream; stream != NULL; stream = stream_next) {
...@@ -3320,9 +3320,9 @@ static void build_file_streams(void) ...@@ -3320,9 +3320,9 @@ static void build_file_streams(void)
stream->ap_in->mpeg2ts_compute_pcr = 1; stream->ap_in->mpeg2ts_compute_pcr = 1;
} }
if (av_open_input_file(&infile, stream->feed_filename, if ((ret = av_open_input_file(&infile, stream->feed_filename,
stream->ifmt, 0, stream->ap_in) < 0) { stream->ifmt, 0, stream->ap_in)) < 0) {
http_log("%s not found", stream->feed_filename); http_log("could not open %s: %d\n", stream->feed_filename, ret);
/* remove stream (no need to spend more time on it) */ /* remove stream (no need to spend more time on it) */
fail: fail:
remove_stream(stream); remove_stream(stream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment