diff options
author | wm4 <wm4@nowhere> | 2018-08-31 12:48:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-08-31 12:55:22 +0200 |
commit | 559a400ac36e75a8d73ba263fd7fa6736df1c2da (patch) | |
tree | 5e117d0ddfd279cae346fc334d4c3f9262509fef /demux/demux_disc.c | |
parent | 5f83b6a5f5939ce39af929f200b1ea236fbe350c (diff) | |
download | mpv-559a400ac36e75a8d73ba263fd7fa6736df1c2da.tar.bz2 mpv-559a400ac36e75a8d73ba263fd7fa6736df1c2da.tar.xz |
demux, stream: rip out the classic stream cache
The demuxer cache is the only cache now. Might need another change to
combat seeking failures in mp4 etc. The only bad thing is the loss of
cache-speed, which was sort of nice to have.
Diffstat (limited to 'demux/demux_disc.c')
-rw-r--r-- | demux/demux_disc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/demux/demux_disc.c b/demux/demux_disc.c index 15ccb2313d..e5c63cea17 100644 --- a/demux/demux_disc.c +++ b/demux/demux_disc.c @@ -292,11 +292,8 @@ static int d_open(demuxer_t *demuxer, enum demux_check check) struct stream *cur = demuxer->stream; const char *sname = ""; - while (cur) { - if (cur->info) - sname = cur->info->name; - cur = cur->underlying; // down the caching chain - } + if (cur->info) + sname = cur->info->name; p->is_cdda = strcmp(sname, "cdda") == 0; p->is_dvd = strcmp(sname, "dvd") == 0 || |