diff options
author | Jochen Henneberg <jh@henneberg-systemdesign.com> | 2019-08-26 15:03:48 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-11-17 15:41:55 +0000 |
commit | 3d9d3c91d351515b9178f13ac66b0ab8ff58cc25 (patch) | |
tree | 6c15be31840ea23f6681196e4f5325dae7ed8ac5 | |
parent | d803c3816e5595f83273405592c5d64dd8123768 (diff) | |
download | gstreamer-plugins-base-3d9d3c91d351515b9178f13ac66b0ab8ff58cc25.tar.gz |
audioringbuffer: Reset reorder flag before check
This function might be revisited with different channel position mapping
while audio source goes into play so the reorder flag needs to be reset
before the checks happen.
-rw-r--r-- | gst-libs/gst/audio/gstaudioringbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/audio/gstaudioringbuffer.c b/gst-libs/gst/audio/gstaudioringbuffer.c index cd5197e1b..f4d5c9787 100644 --- a/gst-libs/gst/audio/gstaudioringbuffer.c +++ b/gst-libs/gst/audio/gstaudioringbuffer.c @@ -2034,6 +2034,7 @@ gst_audio_ring_buffer_set_channel_positions (GstAudioRingBuffer * buf, channels = buf->spec.info.channels; to = buf->spec.info.position; + buf->need_reorder = FALSE; if (memcmp (position, to, channels * sizeof (to[0])) == 0) return; @@ -2042,7 +2043,6 @@ gst_audio_ring_buffer_set_channel_positions (GstAudioRingBuffer * buf, return; } - buf->need_reorder = FALSE; if (!gst_audio_get_channel_reorder_map (channels, position, to, buf->channel_reorder_map)) g_return_if_reached (); |