GNOME Bugzilla – Bug 709754
audioringbuffer: Clears need_reorder flag wrongly
Last modified: 2013-10-10 10:40:24 UTC
Created attachment 256836 [details] [review] Fix patch gst_audio_ring_buffer_set_channel_positions() checks whether the given positions are identical with the current setup and returns immediately if so. But it also clears need_reorder flag before this comparison, thus this flag might be wrongly cleared if the function is called twice with the same channel positions. The fix patch is attached below.
Will backport to 1.2 later. commit 6d659e3c6fe978e0400ab21d317504d18642e759 Author: Takashi Iwai <tiwai@suse.de> Date: Tue Oct 8 16:02:46 2013 +0200 audioringbuffer: Don't clear need_reorder flag too early gst_audio_ring_buffer_set_channel_positions() checks whether the given positions are identical with the current setup and returns immediately if so. But it also clears need_reorder flag before this comparison, thus this flag might be wrongly cleared if the function is called twice with the same channel positions. Move the flag clearance after the check. https://bugzilla.gnome.org/show_bug.cgi?id=709754