codecccinserter: Fix event double free
Need to steal GstVideoCodecFrame.events before unref Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8673>
This commit is contained in:
parent
9254c8bd41
commit
2cf19176dc
@ -552,6 +552,7 @@ gst_codec_cc_inserter_chain (GstPad * pad, GstObject * parent,
|
||||
if (!klass->push (self, frame, &latency)) {
|
||||
GST_ERROR_OBJECT (self, "Couldn't process frame");
|
||||
priv->current_frame_events = frame->events;
|
||||
frame->events = NULL;
|
||||
gst_video_codec_frame_unref (frame);
|
||||
/* TODO: return error in case of too many decoding error */
|
||||
return GST_FLOW_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user