mirror of https://github.com/mpv-player/mpv
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:
parent
22b16a40e5
commit
baaa32621e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue