mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
audiomixer: Don't reset caps on flush
A flush event doesn't invalidate the previous caps event. https://bugzilla.gnome.org/show_bug.cgi?id=742684
This commit is contained in:
parent
9071b8487c
commit
33f412d6db
1 changed files with 5 additions and 1 deletions
|
@ -751,7 +751,11 @@ gst_audiomixer_stop (GstAggregator * agg)
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_audiomixer_flush (GstAggregator * agg)
|
gst_audiomixer_flush (GstAggregator * agg)
|
||||||
{
|
{
|
||||||
gst_audiomixer_reset (GST_AUDIO_MIXER (agg));
|
GstAudioMixer *audiomixer = GST_AUDIO_MIXER (agg);
|
||||||
|
|
||||||
|
audiomixer->offset = 0;
|
||||||
|
agg->segment.position = -1;
|
||||||
|
gst_buffer_replace (&audiomixer->current_buffer, NULL);
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue