0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

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.
This commit is contained in:
wm4 2014-05-27 22:05:22 +02:00
parent 22b16a40e5
commit baaa32621e

View File

@ -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