mirror of https://github.com/mpv-player/mpv
dvdnav: enable caching
No idea why this was disabled. It was in the original MPlayer code, which doesn't make much sense to me, because using the MPlayer stream cache seems 100% broken due to design issues.
This commit is contained in:
parent
6002520906
commit
8510ddba4c
|
@ -643,8 +643,7 @@ static struct priv *new_dvdnav_stream(struct priv *priv, char *filename)
|
||||||
if (!priv->dvdnav)
|
if (!priv->dvdnav)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* turn off dvdnav caching */
|
dvdnav_set_readahead_flag(priv->dvdnav, 1);
|
||||||
dvdnav_set_readahead_flag(priv->dvdnav, 0);
|
|
||||||
if (dvdnav_set_PGC_positioning_flag(priv->dvdnav, 1) != DVDNAV_STATUS_OK)
|
if (dvdnav_set_PGC_positioning_flag(priv->dvdnav, 1) != DVDNAV_STATUS_OK)
|
||||||
mp_msg(MSGT_OPEN, MSGL_ERR,
|
mp_msg(MSGT_OPEN, MSGL_ERR,
|
||||||
"stream_dvdnav, failed to set PGC positioning\n");
|
"stream_dvdnav, failed to set PGC positioning\n");
|
||||||
|
|
Loading…
Reference in New Issue