discoverer: Don't crash when running with -v if channel-mask==0 and >7 channels
authorVivia Nikolaidou <vivia@ahiru.eu>
Wed, 13 Jun 2018 12:29:46 +0000 (15:29 +0300)
committerVivia Nikolaidou <vivia@ahiru.eu>
Thu, 14 Jun 2018 12:13:51 +0000 (15:13 +0300)
commiteffd8920217923ef314f71fe90f41e005d2f92ef
treec5e0c0f45f430f60917fea5d03170aa2caddf862
parent1208ef637a2b868c33e7da1154e0a1a3c1728f84
discoverer: Don't crash when running with -v if channel-mask==0 and >7 channels

For e.g. 16-channel audio, if the channel mask is 0 (which it usually
is), gst_audio_channel_positions_from_mask would get confused,
ultimately leading into a crash.

https://bugzilla.gnome.org/show_bug.cgi?id=796578
tools/gst-discoverer.c