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 14:44:54 +0000 (15:44 +0100)
commita3e55038acf76c7baa6e8fb9f020f968049f0f52
tree8e8497411727faf5da95e50188c4a5ce27e7f7a9
parent40a54583921683bccd7a38bdabfc9c763caa764f
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