summaryrefslogtreecommitdiffstats
path: root/gst/law
diff options
context:
space:
mode:
Diffstat (limited to 'gst/law')
-rw-r--r--gst/law/alaw-decode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c
index 294406b7..23ecc2b3 100644
--- a/gst/law/alaw-decode.c
+++ b/gst/law/alaw-decode.c
@@ -90,7 +90,8 @@ alawdec_getcaps (GstPad * pad)
}
/* now intersect rate and channels from peer caps */
othercaps = gst_pad_peer_get_caps (otherpad);
- if (othercaps) {
+ if (othercaps && (!gst_caps_is_empty (othercaps))
+ && (!gst_caps_is_any (othercaps))) {
GstStructure *structure;
const GValue *orate, *ochans;
const GValue *rate, *chans;