diff options
author | Martin Storsjö <martin@martin.st> | 2012-10-06 02:39:21 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-10-06 13:05:35 +0300 |
commit | cde26748aede7226aab07923f183c2e3ba30985f (patch) | |
tree | cf429d63b2c14b79958e63de9f0a93d7e8dca398 /libavformat | |
parent | fadd3a68213833cd3db36e8d5959a641a485c839 (diff) | |
download | ffmpeg-cde26748aede7226aab07923f183c2e3ba30985f.tar.gz |
smoothstreamingenc: Add a more verbose error message
This helps tracking down the cause if this happens to be an issue.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/smoothstreamingenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index a8af7118df..69d555f9ec 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -216,8 +216,10 @@ static int write_manifest(AVFormatContext *s, int final) snprintf(filename, sizeof(filename), "%s/Manifest", s->filename); ret = avio_open2(&out, filename, AVIO_FLAG_WRITE, &s->interrupt_callback, NULL); - if (ret < 0) + if (ret < 0) { + av_log(s, AV_LOG_ERROR, "Unable to open %s for writing\n", filename); return ret; + } avio_printf(out, "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"); for (i = 0; i < s->nb_streams; i++) { OutputStream *os = &c->streams[i]; |