videoencoder: Release stream lock in finish_subframe before pad_push

Derived from 780d635dadc0723e39a8ba90cfe0903a2de346fd for
https://bugzilla.gnome.org/show_bug.cgi?id=715192
which was for finish_frame.
This commit is contained in:
Devarsh Thakkar 2020-02-05 02:58:14 -08:00 committed by GStreamer Merge Bot
parent 6dd643532f
commit 8df947df5d

View file

@ -2552,8 +2552,10 @@ gst_video_encoder_finish_subframe (GstVideoEncoder * encoder,
gst_video_encoder_transform_meta_unlocked (encoder, frame); gst_video_encoder_transform_meta_unlocked (encoder, frame);
if (ret == GST_FLOW_OK) { if (ret == GST_FLOW_OK) {
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
ret = gst_pad_push (encoder->srcpad, subframe_buffer); ret = gst_pad_push (encoder->srcpad, subframe_buffer);
subframe_buffer = NULL; subframe_buffer = NULL;
GST_VIDEO_ENCODER_STREAM_LOCK (encoder);
} }
done: done: