mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
interaudiosink: Flush the adapter when we get new caps
Ideally we would drain the source but that would require more coordination between sink and source than what we currently have.
This commit is contained in:
parent
340d60e85e
commit
6a36b53831
1 changed files with 2 additions and 0 deletions
|
@ -238,6 +238,8 @@ gst_inter_audio_sink_set_caps (GstBaseSink * sink, GstCaps * caps)
|
|||
g_mutex_lock (&interaudiosink->surface->mutex);
|
||||
interaudiosink->surface->audio_info = info;
|
||||
interaudiosink->info = info;
|
||||
/* TODO: Ideally we would drain the source here */
|
||||
gst_adapter_clear (interaudiosink->surface->audio_adapter);
|
||||
g_mutex_unlock (&interaudiosink->surface->mutex);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue