diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-25 00:12:53 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-25 00:12:53 +0000 |
commit | c351cc7f57fd4e126fc7f8312a70df4c4ae80ad1 (patch) | |
tree | 3e123e185ef202d7eeebee03e6696fbe111fb3dc /ffserver.c | |
parent | bc908bc453af1676be3ef3dbf278a9954f8553df (diff) | |
download | ffmpeg-c351cc7f57fd4e126fc7f8312a70df4c4ae80ad1.tar.gz |
better error message
Originally committed as revision 13370 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 9bb9f89a12..b5a48bb4c6 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1887,7 +1887,7 @@ static int open_input_stream(HTTPContext *c, const char *info) 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 *c, const char *info) #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; |