mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
pulsesink: Wait until there is enough room to write an entire segment
When trying to write out a segment, wait until there is enough free space for the entire segment. This helps to reduce ripple in the clock reporting, where the app might query the playback position while only half a segment has been written (and is therefore reported by _delay(), even though the ring buffer has not yet been advanced)
This commit is contained in:
parent
7782c9f890
commit
608d13d462
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ gst_pulsesink_write (GstAudioSink * asink, gpointer data, guint length)
|
|||
goto unlock_and_fail;
|
||||
}
|
||||
|
||||
if (l > 0)
|
||||
if (l >= length)
|
||||
break;
|
||||
|
||||
if (pulsesink->did_reset)
|
||||
|
|
Loading…
Reference in a new issue