GNOME Bugzilla – Bug 750252
audiointerleave: Crash when channel-positions-from-input=1 and channel-positions unset
Last modified: 2015-06-01 23:54:04 UTC
Audio interleave crash if channel-positions-from-input is set to FALSE and channel-positions is not set. The reason of the crash is that there is no default positionning, which lead to channels=0, bps=0, hence an allocation of size 0 and call to gst_buffer_map() to fail. Additionnally, gst_buffer_map() calles are systematically unchecked (even the one from the outside world. To reproduce: gst-launch-1.0 pulsesrc ! audiointerleave channel-positions-from-input=0 ! pulsesink
i guess it is similar to interleave crash raised in https://bugzilla.gnome.org/show_bug.cgi?id=744211
Fixed: commit db5b3b5c4124f340f9bf784a6db7141868febce2 Author: Olivier Crête <olivier.crete@collabora.com> Date: Mon Jun 1 19:43:20 2015 -0400 audiointerleave: Always have "channels" be the actual pad count Don't force it anywhere https://bugzilla.gnome.org/show_bug.cgi?id=750252
(In reply to Vineeth from comment #1) > i guess it is similar to interleave crash raised in > https://bugzilla.gnome.org/show_bug.cgi?id=744211 This bug is about audiointerleave, the other one is the old interleave, which has different code. I plan on writing unit tests for the various scenarios in audiointerleave so we can make sure they work.