mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
sfsink: use basesink preroll lock
This commit is contained in:
parent
92c192852a
commit
82027ebfeb
1 changed files with 2 additions and 2 deletions
|
@ -415,9 +415,9 @@ gst_sf_sink_loop (GstPad * pad)
|
||||||
|
|
||||||
basesink->offset += GST_BUFFER_SIZE (buf);
|
basesink->offset += GST_BUFFER_SIZE (buf);
|
||||||
|
|
||||||
GST_PAD_PREROLL_LOCK (pad);
|
GST_BASE_SINK_PREROLL_LOCK (basesink);
|
||||||
result = gst_sf_sink_render (basesink, buf);
|
result = gst_sf_sink_render (basesink, buf);
|
||||||
GST_PAD_PREROLL_UNLOCK (pad);
|
GST_BASE_SINK_PREROLL_UNLOCK (basesink);
|
||||||
if (G_UNLIKELY (result != GST_FLOW_OK))
|
if (G_UNLIKELY (result != GST_FLOW_OK))
|
||||||
goto paused;
|
goto paused;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue