codecs: vp8decoder: handle the show_frame check in base class.
authorHe Junyan <junyan.he@intel.com>
Sun, 11 Oct 2020 16:57:24 +0000 (00:57 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 15 Oct 2020 19:01:54 +0000 (19:01 +0000)
commit6b3ff669ee0fc87ca4a43e115da4621c820dbeea
tree927311f7415f3b7cef07df7cb81038eb346940fd
parenta31a6608fef61905e8b3c77ef38f783bf7b21c0b
codecs: vp8decoder: handle the show_frame check in base class.

Move the show_frame check from sub class to vp8 decoder's base class.
Calling the sub class' output_picture() function only when the frame
is displayed and marking the other automatically as decode only.

This is done to avoid logic and code repetition in subclasses.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1670>
gst-libs/gst/codecs/gstvp8decoder.c