ac3parse: fix not-linked handling causing glitches when selecting stream
authorSky Juan <skyjuan@realtek.com>
Mon, 14 Aug 2017 07:28:22 +0000 (15:28 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 16 Aug 2017 13:09:31 +0000 (14:09 +0100)
commitbc290059a4d1fd2fb1ffa229ed307efc2daa3972
tree63e64ea5f0d2004ad67dcce6de2aa5167ed17e7a
parent1de2df03be7a1d87ca79f90269ddc5264c6e4293
ac3parse: fix not-linked handling causing glitches when selecting stream

Fix chain function not handling not-linked from baseparse.

When an input data is separated into 2 buffers, the second buffer
would not be pushed into the adapter if baseparse returns not-linked
for first buffer.

This caused glitches when switching streams and selecting
a stream that was previously unselected.

https://bugzilla.gnome.org/show_bug.cgi?id=786268
gst/audioparsers/gstac3parse.c