decodebin2: Properly clean DecodeChain after errors.
authorEdward Hervey <bilboed@bilboed.com>
Sat, 26 Jun 2010 15:55:12 +0000 (17:55 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 26 Jun 2010 15:57:24 +0000 (17:57 +0200)
commitec637580a8a998b8aaa496f407f53056902a84a0
tree043492c84f8ac285474b0a5a48041afc67ac9601
parent24ede639ad9cc9d12e22527ec172705121fa13f7
decodebin2: Properly clean DecodeChain after errors.

If an error happens, the PAUSED state will never be reached. If an
application re-uses decodebin2 (like totem) where one would normally
set to READY between each file, the cleanup that normally happens in
the PAUSED=>READY codepath will never be called, resulting in the
following file to re-use the previous demuxer/decoder/...

https://bugzilla.gnome.org/show_bug.cgi?id=622807
gst/playback/gstdecodebin2.c