decodebin: Don't leak blocked pad references on errors
authorJan Schmidt <jan@centricular.com>
Wed, 18 Jan 2017 03:59:18 +0000 (14:59 +1100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 18 Jan 2017 11:09:06 +0000 (13:09 +0200)
commit54bf10427402c9ac046ea694e6b48d3d976d55e1
treee5a71abf77d8419510ad0faff4cad8ac51a229d7
parent99f489949127d0b4d720d5f6313b8635d0d96e7d
decodebin: Don't leak blocked pad references on errors

When the decodebin state change fails because of an error
message, we might not go through PAUSED->READY. Don't leak
a ref to decodebin pads due to pad blocking in that case.

This is because we return ASYNC going to PAUSED, and if
we fail before reaching PAUSED the only transition we'll
see is READY->NULL.

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