Add a finalize method to ensure we clean up state even if someone omitted the state...
authorJan Schmidt <thaytan@mad.scientist.com>
Sun, 5 Feb 2006 23:31:05 +0000 (23:31 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Sun, 5 Feb 2006 23:31:05 +0000 (23:31 +0000)
commit5109622dd0c4d61553c15d1eebbbaa954cf10b81
tree6cb45913fb032d288a7e79e3f091065de9004642
parenta81e97c96ecd660ecb5e7af52c9b753c2dab366e
Add a finalize method to ensure we clean up state even if someone omitted the state change back to NULL.

Original commit message from CVS:
(theora_enc_finalize), (theora_enc_sink_setcaps):
Add a finalize method to ensure we clean up state even if
someone omitted the state change back to NULL.

* ext/vorbis/vorbisenc.c: (gst_vorbisenc_metadata_set1),
(gst_vorbisenc_chain):
Free some more leaked bits.

* tests/check/pipelines/theoraenc.c: (start_pipeline),
(stop_pipeline):
Wait for state changes to happen if they're ASYNC.

This ought to teach those fancy pants buildbots a lesson.
ChangeLog
ext/theora/theoraenc.c
ext/vorbis/vorbisenc.c
tests/check/pipelines/theoraenc.c