mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
interaudiosink: Use the bpf from the audio info instead of hardcoding 4
This commit is contained in:
parent
c10f5eecea
commit
2939337b61
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ gst_inter_audio_sink_render (GstBaseSink * sink, GstBuffer * buffer)
|
|||
bpf = interaudiosink->info.bpf;
|
||||
|
||||
g_mutex_lock (&interaudiosink->surface->mutex);
|
||||
n = gst_adapter_available (interaudiosink->surface->audio_adapter) / 4;
|
||||
n = gst_adapter_available (interaudiosink->surface->audio_adapter) / bpf;
|
||||
while (n > PERIOD * N_PERIODS) {
|
||||
GST_WARNING_OBJECT (interaudiosink, "flushing %d samples", PERIOD / 2);
|
||||
gst_adapter_flush (interaudiosink->surface->audio_adapter,
|
||||
|
|
Loading…
Reference in a new issue