Commit 8df947df authored by Devarsh Thakkar's avatar Devarsh Thakkar Committed by GStreamer Merge Bot

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.
parent 6dd64353
......@@ -2552,8 +2552,10 @@ gst_video_encoder_finish_subframe (GstVideoEncoder * encoder,
gst_video_encoder_transform_meta_unlocked (encoder, frame);
if (ret == GST_FLOW_OK) {
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
ret = gst_pad_push (encoder->srcpad, subframe_buffer);
subframe_buffer = NULL;
GST_VIDEO_ENCODER_STREAM_LOCK (encoder);
}
done:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment