mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
videoencoder: remove the lock from gst_video_encoder_flush
The lock is already taken before calling the flush method and can lead to deadlock for some encoders that need to take the same lock from another thread while flushing https://bugzilla.gnome.org/show_bug.cgi?id=787311
This commit is contained in:
parent
6e9edc3031
commit
6627dd3ae3
1 changed files with 0 additions and 2 deletions
|
@ -418,11 +418,9 @@ gst_video_encoder_flush (GstVideoEncoder * encoder)
|
|||
GstVideoEncoderClass *klass = GST_VIDEO_ENCODER_GET_CLASS (encoder);
|
||||
gboolean ret = TRUE;
|
||||
|
||||
GST_VIDEO_ENCODER_STREAM_LOCK (encoder);
|
||||
if (klass->flush)
|
||||
ret = klass->flush (encoder);
|
||||
|
||||
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue