summaryrefslogtreecommitdiffstats
path: root/gst/law/mulaw-decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/law/mulaw-decode.c')
-rw-r--r--gst/law/mulaw-decode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c
index d9babea4..786a43f9 100644
--- a/gst/law/mulaw-decode.c
+++ b/gst/law/mulaw-decode.c
@@ -72,10 +72,8 @@ mulawdec_getcaps (GstPad * pad)
GValue irate = { 0 }, ichans = {
0};
- if (gst_caps_is_empty (othercaps) || gst_caps_is_any (othercaps)) {
- gst_caps_unref (othercaps);
+ if (gst_caps_is_empty (othercaps) || gst_caps_is_any (othercaps))
goto done;
- }
structure = gst_caps_get_structure (othercaps, 0);
orate = gst_structure_get_value (structure, "rate");
@@ -97,9 +95,9 @@ mulawdec_getcaps (GstPad * pad)
gst_structure_set_value (structure, "rate", &irate);
gst_structure_set_value (structure, "channels", &ichans);
+ done:
gst_caps_unref (othercaps);
}
-done:
return base_caps;
}