va: baseenc: Do not clear the codec frame twice when error.
authorHe Junyan <junyan.he@intel.com>
Fri, 8 Jul 2022 13:57:40 +0000 (21:57 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 11 Jul 2022 10:12:29 +0000 (10:12 +0000)
commit27c33f0161113bc88d08b8349587d27da03c3c68
tree27082c3371d2301ba1b84e56370671466a4be36c
parent3385ea3481dc991bff949ab5bced34d3e12f361c
va: baseenc: Do not clear the codec frame twice when error.

The current manner will clear the input codec frame twice if we fail
to push the output data, which will trigger an assert.

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