mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 01:32:42 +00:00
dx9screenscapsrc: consolidate UNLOCK
This commit is contained in:
parent
26cb04dd45
commit
595392d187
1 changed files with 3 additions and 3 deletions
|
@ -509,17 +509,17 @@ gst_dx9screencapsrc_create (GstPushSrc * push_src, GstBuffer ** buf)
|
||||||
GST_DEBUG_OBJECT (src, "Waiting for next frame time %" G_GUINT64_FORMAT,
|
GST_DEBUG_OBJECT (src, "Waiting for next frame time %" G_GUINT64_FORMAT,
|
||||||
buf_time);
|
buf_time);
|
||||||
ret = gst_clock_id_wait (id, NULL);
|
ret = gst_clock_id_wait (id, NULL);
|
||||||
GST_OBJECT_LOCK (src);
|
|
||||||
|
|
||||||
|
GST_OBJECT_LOCK (src);
|
||||||
gst_clock_id_unref (id);
|
gst_clock_id_unref (id);
|
||||||
src->clock_id = NULL;
|
src->clock_id = NULL;
|
||||||
|
GST_OBJECT_UNLOCK (src);
|
||||||
|
|
||||||
if (ret == GST_CLOCK_UNSCHEDULED) {
|
if (ret == GST_CLOCK_UNSCHEDULED) {
|
||||||
/* Got woken up by the unlock function */
|
/* Got woken up by the unlock function */
|
||||||
GST_OBJECT_UNLOCK (src);
|
|
||||||
gst_object_unref (clock);
|
gst_object_unref (clock);
|
||||||
return GST_FLOW_FLUSHING;
|
return GST_FLOW_FLUSHING;
|
||||||
}
|
}
|
||||||
GST_OBJECT_UNLOCK (src);
|
|
||||||
|
|
||||||
/* Duration is a complete 1/fps frame duration */
|
/* Duration is a complete 1/fps frame duration */
|
||||||
buf_dur =
|
buf_dur =
|
||||||
|
|
Loading…
Reference in a new issue