videodecoder: avoid double unlock

This commit is contained in:
Wim Taymans 2012-05-01 14:45:46 +02:00 committed by Sebastian Dröge
parent 7ff23514ee
commit e8c7f57a0a

View file

@ -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;
}