summaryrefslogtreecommitdiffstats
path: root/gst/law
diff options
context:
space:
mode:
Diffstat (limited to 'gst/law')
-rw-r--r--gst/law/mulaw-decode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c
index fe8e07d0..983c814b 100644
--- a/gst/law/mulaw-decode.c
+++ b/gst/law/mulaw-decode.c
@@ -72,6 +72,11 @@ mulawdec_getcaps (GstPad * pad)
GValue irate = { 0 }, ichans = {
0};
+ if (gst_caps_is_empty (othercaps) || gst_caps_is_any (othercaps)) {
+ gst_caps_unref (othercaps);
+ goto done;
+ }
+
structure = gst_caps_get_structure (othercaps, 0);
orate = gst_structure_get_value (structure, "rate");
ochans = gst_structure_get_value (structure, "channels");