bz2: fix some refcount mistakes and do some cleaning up
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 4 Apr 2009 16:51:34 +0000 (17:51 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 4 Apr 2009 18:00:18 +0000 (19:00 +0100)
commit788fed202d51bd1632817af71928567d474f7e3e
tree6bbe06f92f5b0a49260ba382aa112b4ed2d309df
parent0eea919fae0801a66f7e78a476d6c4cc59de8fc8
bz2: fix some refcount mistakes and do some cleaning up

No need to unref buffers if pad_push returns something non-FLOW_OK.
In fact, this will cause assertions or crashes. However, we do need
to unref the input buffer whenever we don't pass it downstream. Also,
a non-OK flow return is not an error, so don't post error messages on
the bus - the pipeline may just be shutting down. Miscellaneous other
clean-ups and crack removal. Plenty of work left for those who feel
like it.
ext/bz2/Makefile.am
ext/bz2/gstbz2dec.c
ext/bz2/gstbz2enc.c