mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 11:15:31 +00:00
baseaudiosink: use sink preroll lock
This commit is contained in:
parent
825c650964
commit
8a786d10be
1 changed files with 4 additions and 4 deletions
|
@ -1762,7 +1762,7 @@ gst_base_audio_sink_callback (GstRingBuffer * rbuf, guint8 * data, guint len,
|
|||
goto error;
|
||||
}
|
||||
|
||||
GST_PAD_PREROLL_LOCK (basesink->sinkpad);
|
||||
GST_BASE_SINK_PREROLL_LOCK (basesink);
|
||||
if (basesink->flushing)
|
||||
goto flushing;
|
||||
|
||||
|
@ -1781,7 +1781,7 @@ gst_base_audio_sink_callback (GstRingBuffer * rbuf, guint8 * data, guint len,
|
|||
basesink->segment.last_stop += len;
|
||||
|
||||
memcpy (data, GST_BUFFER_DATA (buf), len);
|
||||
GST_PAD_PREROLL_UNLOCK (basesink->sinkpad);
|
||||
GST_BASE_SINK_PREROLL_UNLOCK (basesink);
|
||||
|
||||
GST_PAD_STREAM_UNLOCK (basesink->sinkpad);
|
||||
|
||||
|
@ -1811,7 +1811,7 @@ flushing:
|
|||
{
|
||||
GST_DEBUG_OBJECT (sink, "we are flushing");
|
||||
gst_ring_buffer_pause (rbuf);
|
||||
GST_PAD_PREROLL_UNLOCK (basesink->sinkpad);
|
||||
GST_BASE_SINK_PREROLL_UNLOCK (basesink);
|
||||
GST_PAD_STREAM_UNLOCK (basesink->sinkpad);
|
||||
return;
|
||||
}
|
||||
|
@ -1819,7 +1819,7 @@ preroll_error:
|
|||
{
|
||||
GST_DEBUG_OBJECT (sink, "error %s", gst_flow_get_name (ret));
|
||||
gst_ring_buffer_pause (rbuf);
|
||||
GST_PAD_PREROLL_UNLOCK (basesink->sinkpad);
|
||||
GST_BASE_SINK_PREROLL_UNLOCK (basesink);
|
||||
GST_PAD_STREAM_UNLOCK (basesink->sinkpad);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue