audio-channels: map buffer read-write only if channels differ
gst_audio_buffer_reorder_channels() was always mapping the buffer read-write regardless whether any reordering was needed. If the from and to channel order is identical return immediately without remapping the buffer. Add a small helper function gst_audio_channel_positions_equal() which is used in both gst_audio_reorder_channels() and gst_audio_buffer_reorder_channels(). https://bugzilla.gnome.org/show_bug.cgi?id=773833
Loading
Please register or sign in to comment