mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
dvdnav, tv: force-disable caching
On dvdnav, caching kind of works but not really. (Not our fault, at least not fully. It's due to libdvdnav being slightly misdesigned; see previous commit for some explanations.) The TV code is implemented in the demuxer, and the stream implementation is just a wrapper, so caching makes no sense here.
This commit is contained in:
@@ -696,14 +696,12 @@ static int open_s(stream_t *stream, int mode)
|
||||
stream->type = STREAMTYPE_DVD;
|
||||
stream->demuxer = "lavf";
|
||||
stream->lavf_type = "mpeg";
|
||||
stream->allow_caching = false;
|
||||
|
||||
if (!stream->pos && p->track > 0)
|
||||
mp_msg(MSGT_OPEN, MSGL_ERR, "INIT ERROR: couldn't get init pos %s\r\n",
|
||||
dvdnav_err_to_string(priv->dvdnav));
|
||||
|
||||
mp_msg(MSGT_OPEN, MSGL_INFO, "Remember to disable mpv's cache when "
|
||||
"playing dvdnav:// streams (adding -no-cache to your command line)\n");
|
||||
|
||||
return STREAM_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user