mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
6dd643532f
commit
8df947df5d
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue