audioparsers: baseparse: Be careful to not lose the event ref
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 14 Jan 2011 19:30:11 +0000 (16:30 -0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:07:13 +0000 (18:07 +0100)
commit244f747df22a7400579dabde71979284b8910fa6
tree534fec5aad482a606294003586e9dcd9ea44bdd3
parentbb8f0d3b4c5e3060497aabbb25873d667ae21b1a
audioparsers: baseparse: Be careful to not lose the event ref

Don't unref the event if it hasn't been handled, because the caller
assumes it is still valid and might reuse it.

I ran into this problem when transcoding an AVI (with mp3 inside)
to gpp.

https://bugzilla.gnome.org/show_bug.cgi?id=639555
gst/audioparsers/gstbaseparse.c