va: encoder: Do not reset the frame count when reconfig().
authorHe Junyan <junyan.he@intel.com>
Wed, 25 May 2022 12:01:34 +0000 (20:01 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 25 May 2022 18:56:34 +0000 (18:56 +0000)
commitd47416d3a28bf5c0028ac420df758ede89ace97b
tree4ea09b5bde4b57582150d7ea31abdd8d4b6ea64d
parent994f2c56e2ce94f472bfa75ec0fec4457a08382c
va: encoder: Do not reset the frame count when reconfig().

We should not reset the input/output_frame_count when some configure
changes. For example, the if resolution changes, the current way just
resets the frame count and make the PTS of the output buffer restart
from the original PTS of the first frame. That causes a lot of QOS
event and drop all the new frames.
We should only reset them when encoder start().

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2489>
subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c