summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-27 22:05:22 +0200
committerwm4 <wm4@nowhere>2014-05-27 22:05:22 +0200
commitbaaa32621e95897c8b1823d21ace3f2189094a3d (patch)
tree1308cf7ba6fe6e94b15fea46aede57e7d0f66e01
parent22b16a40e58d17f1de5328bb3533631b22d0f4ad (diff)
downloadmpv-baaa32621e95897c8b1823d21ace3f2189094a3d.tar.bz2
mpv-baaa32621e95897c8b1823d21ace3f2189094a3d.tar.xz
stream: unbreak writeable streams
So, basically this worked only with streams that were not local files, because stream_dvd.c "intercepts" local files to check whether they point to DVD images. This means if a stream is not writeable, we have to try the next stream implementation. Unbreaks 2-pass encoding.
-rw-r--r--stream/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream.c b/stream/stream.c
index baee62221f..e2d49564be 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -292,9 +292,9 @@ static int open_internal(const stream_info_t *sinfo, struct stream *underlying,
s->mode = flags & (STREAM_READ | STREAM_WRITE);
if ((s->mode & STREAM_WRITE) && !sinfo->can_write) {
- MP_ERR(s, "No write access implemented.\n");
+ MP_VERBOSE(s, "No write access implemented.\n");
talloc_free(s);
- return STREAM_ERROR;
+ return STREAM_NO_MATCH;
}
// Parse options