mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
Revert "audiobasesink: Don't wait on gap events"
This reverts commit 8e923a8e2d
.
This caused regressions, see #3303.
Without this commit, osxaudiosrc ! osxaudiosink won't work
right, but since that hasn't really been a huge problem
for years it's probably best to revert this until a proper
solution can be figured out.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6356>
This commit is contained in:
parent
50033d03d3
commit
f04f86f3ee
1 changed files with 0 additions and 9 deletions
|
@ -1124,15 +1124,6 @@ gst_audio_base_sink_wait_event (GstBaseSink * bsink, GstEvent * event)
|
||||||
/* Make sure the ringbuffer will start again if interrupted during event_wait() */
|
/* Make sure the ringbuffer will start again if interrupted during event_wait() */
|
||||||
g_atomic_int_set (&sink->eos_rendering, 1);
|
g_atomic_int_set (&sink->eos_rendering, 1);
|
||||||
clear_force_start_flag = TRUE;
|
clear_force_start_flag = TRUE;
|
||||||
|
|
||||||
/* For gap events, don't actually wait for the clock to
|
|
||||||
* reach that time, or it will drain the ringbuffer, just
|
|
||||||
* ensure we're prerolled and let the next actual buffer
|
|
||||||
* get rendered where it belongs */
|
|
||||||
if (GST_EVENT_TYPE (event) == GST_EVENT_GAP) {
|
|
||||||
ret = gst_base_sink_do_preroll (bsink, GST_MINI_OBJECT_CAST (event));
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue