summaryrefslogtreecommitdiffstats
path: root/gst/law
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2006-06-02 15:02:54 +0000
committerEdward Hervey <bilboed@bilboed.com>2006-06-02 15:02:54 +0000
commitab8c061685e6ae1955d22971f9b924dd890abaed (patch)
treecd9ac55c8bb73e5f69882d5ce3e7bdf56e64532e /gst/law
parentb91d63fb3b709b100ea67a561d1e5861acc725e8 (diff)
gst/law/alaw-decode.c: Trying to get items from an ANY or EMPTY caps is ... stupid.
Original commit message from CVS: * gst/law/alaw-decode.c: (alawdec_getcaps): Trying to get items from an ANY or EMPTY caps is ... stupid.
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;