mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
videodecoder: avoid double unlock
This commit is contained in:
parent
7ff23514ee
commit
e8c7f57a0a
1 changed files with 3 additions and 4 deletions
|
@ -1749,10 +1749,6 @@ gst_video_decoder_new_frame (GstVideoDecoder * decoder)
|
|||
priv->system_frame_number++;
|
||||
frame->decode_frame_number = priv->decode_frame_number;
|
||||
priv->decode_frame_number++;
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
|
||||
|
||||
GST_LOG_OBJECT (decoder, "Created new frame %p (sfn:%d)",
|
||||
frame, frame->system_frame_number);
|
||||
|
||||
frame->dts = GST_CLOCK_TIME_NONE;
|
||||
frame->pts = GST_CLOCK_TIME_NONE;
|
||||
|
@ -1761,6 +1757,9 @@ gst_video_decoder_new_frame (GstVideoDecoder * decoder)
|
|||
priv->current_frame_events = NULL;
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
|
||||
|
||||
GST_LOG_OBJECT (decoder, "Created new frame %p (sfn:%d)",
|
||||
frame, frame->system_frame_number);
|
||||
|
||||
return frame;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue