summaryrefslogtreecommitdiff
path: root/ext/faad
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-01-09 14:59:58 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-01-09 14:59:58 +0100
commitc849631686baf0012ca89d9f64cc8665277cbcba (patch)
tree8ca4c5074a006d0ccbbf123c9958d7278e5b5598 /ext/faad
parentadb4b010edf44bcfb1254f6e8cc8a0ad7f62d4d9 (diff)
downloadgstreamer-plugins-bad-c849631686baf0012ca89d9f64cc8665277cbcba.tar.gz
faad: Make sure that the srcpad has caps before finishing actual audio data
Diffstat (limited to 'ext/faad')
-rw-r--r--ext/faad/gstfaad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index c2d62c550..95c04df60 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -485,7 +485,8 @@ gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info)
}
}
- if (G_LIKELY (!fmt_change))
+ if (G_LIKELY (gst_pad_has_current_caps (GST_AUDIO_DECODER_SRC_PAD (faad))
+ && !fmt_change))
return TRUE;