decodebin: Return immediately from checking if a chain is complete if we're shutting down

This commit is contained in:
Sebastian Dröge 2013-05-15 14:51:16 +02:00
parent 83f2476976
commit 062246fc6e

View file

@ -3320,6 +3320,9 @@ gst_decode_chain_is_complete (GstDecodeChain * chain)
gboolean complete = FALSE;
CHAIN_MUTEX_LOCK (chain);
if (chain->dbin->shutdown)
goto out;
if (chain->deadend) {
complete = TRUE;
goto out;