diff options
author | 2017-01-10 14:03:41 +0100 | |
---|---|---|
committer | 2017-01-10 15:43:02 +0100 | |
commit | 4e25feda0d5e084761a9935de7c1e592e86de94f (patch) | |
tree | cacddbd4921351f06810e6182d2c55b3e0545e2c /stream/tvi_dummy.c | |
parent | 334cad57c63d31a346b1457ae92dbb0b64938016 (diff) |
player: change aspects of cover art handling
Cover art handling is a disgusting hack that causes a mess in all
components. And this will stay this way. This is the Xth time I've
changed cover art handling, and that will probably also continue.
But change the code such that cover art is injected into the demux
packet stream, instead of having an explicit special case it in the
decoder glue code. (This is somewhat more similar to the cover art hack
in libavformat.)
To avoid that the over art picture is decoded again on each seek, we
need some additional "caching" in player/video.c. Decoding it after each
seek would work as well, but since cover art pictures can be pretty
huge, it's probably ok to invest some lines of code into caching it.
One weird thing is that the cover art packet will remain queued after
seeks, but that is probably not an issue.
In exchange, we can drop the dec_video.c code, which is pretty
convenient for one of the following commits. This code duplicates a
bunch of lower-level decode calls and does icky messing with this weird
state stuff, so I'm glad it goes away.
Diffstat (limited to 'stream/tvi_dummy.c')
0 files changed, 0 insertions, 0 deletions