summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-06-12 22:30:01 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-06-12 22:30:01 +0000
commitd58ddafdbc828f36808c796171a0dc3b885744c5 (patch)
treef26edf60ff3cf816be08beabe6b42832242192f5
parent462cca10cf1a48fc0ca1bb98dc26bcebeb8bb78b (diff)
Make ffmpeg.c use print_error() when it can't read an ffserver stream.
Originally committed as revision 13761 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 1ad281b322..7ef3165048 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3203,8 +3203,9 @@ static void opt_output_file(const char *filename)
av_strstart(filename, "http:", NULL)) {
/* special case for files sent to ffserver: we get the stream
parameters from ffserver */
- if (read_ffserver_streams(oc, filename) < 0) {
- fprintf(stderr, "Could not read stream parameters from '%s'\n", filename);
+ int err = read_ffserver_streams(oc, filename);
+ if (err < 0) {
+ print_error(filename, err);
av_exit(1);
}
} else {