codecs: mpeg2decoder: drain() only when significant sequence changes.
authorHe Junyan <junyan.he@intel.com>
Tue, 23 Nov 2021 05:30:17 +0000 (13:30 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 24 Nov 2021 14:42:57 +0000 (14:42 +0000)
commitd867180b4e6efec3a0a866e4123938dbe0a4a79c
tree4a6e58fbfc39db422320b920d743a626b938f138
parent2a17618dccfd6f83d31108b6a6eb3ece8455e505
codecs: mpeg2decoder: drain() only when significant sequence changes.

There are a lot of info in the mpeg2's sequence(also including ext
display_ext and scalable_ext). We need to notify the subclass about
its change, but not all the changes should trigger a drain(), which
may change the output picture order. For example, the matrix changes
in sequence header does not change the decoder context and so no need
to trigger a drain().

Fixes: #899
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1375>
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gstmpeg2decoder.c