summaryrefslogtreecommitdiffstats
path: root/player/client.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-20 22:53:33 +0200
committerwm4 <wm4@nowhere>2015-04-20 22:53:33 +0200
commitdebf57bb0d5896fc68e6acc293112eaaf0d3f2d4 (patch)
tree6f9399cb015705a1a688d620e057176910d244ae /player/client.c
parenta1e410e43a7d1cf638f9ce278ec8b7727ae9a32f (diff)
downloadmpv-debf57bb0d5896fc68e6acc293112eaaf0d3f2d4.tar.bz2
mpv-debf57bb0d5896fc68e6acc293112eaaf0d3f2d4.tar.xz
demux: report correct cache state close to EOF
On EOF, this stopped reporting the actual cache duration, and just signalled unknown duration. Fix this and keep reporting whatever is left in the packet queue. This reverts commit 5438a8b3. The commit doesn't give a good explanation as to why it is needed, but I guess it was because the reporting was imperfect (it switched between unknown or 0, and the correct duration). This also removes a line added in commit 848546f2. The line is ds->active = false; The "active" flag basically says that data from this stream is actively needed, and it's used to calculate the minimum data that can actually be played (approximately). If this were ignored, a sparse subtitle stream would set the cache duration to 0s. The commit message adding the line says "actually does nothing, but in theory it's cleaner". Well, screw it.
Diffstat (limited to 'player/client.c')
0 files changed, 0 insertions, 0 deletions