Remove caching of old ImageDecoder objects.
authorCarl Hetherington <cth@carlh.net>
Mon, 13 Jun 2016 13:38:12 +0000 (14:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 13 Jun 2016 13:38:12 +0000 (14:38 +0100)
commit13aae5d8ff27886656ab7ea3ef1194987954bb3f
tree315d023a86f16fa8c0ae2e2c87fbc20071316fe8
parent1daaa67c21d4d28757cdcb06c5e26aec3817867c
Remove caching of old ImageDecoder objects.

This breaks things when there is a 3D ImageContent.  When
you change the video frame type on this content the view
does not update because the re-used ImageDecoder recycles
the same video without noticing that the frame type has changed.

I guess this is sort of `because' the video frame type is used
in VideoDecoder::give, which sets up the cache.

Unfortunately I can't remember the case which the caching
of ImageDecoders was meant to speed up.  Maybe this will
now become apparent.
src/lib/decoder_factory.cc
src/lib/decoder_factory.h
src/lib/player.cc
src/wx/subtitle_panel.cc