ffserver: print error code description in case of write_header() failure
authorStefano Sabatini <stefasab@gmail.com>
Fri, 29 Nov 2013 16:24:09 +0000 (17:24 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Sat, 30 Nov 2013 13:35:33 +0000 (14:35 +0100)
Improve feedback.

ffserver.c

index 64b6be248c25deebc62504f0898c02340bf64d8d..4d656b04fff818d54d285dde0f98736771a34a01 100644 (file)
@@ -3698,7 +3698,7 @@ static void build_file_streams(void)
 
             http_log("Opening feed file '%s' for stream '%s'\n", stream->feed_filename, stream->filename);
             if ((ret = avformat_open_input(&infile, stream->feed_filename, stream->ifmt, &stream->in_opts)) < 0) {
-                http_log("Could not open '%s': %d\n", stream->feed_filename, ret);
+                http_log("Could not open '%s': %s\n", stream->feed_filename, av_err2str(ret));
                 /* remove stream (no need to spend more time on it) */
             fail:
                 remove_stream(stream);