diff options
Diffstat (limited to 'gst/law/mulaw-decode.c')
-rw-r--r-- | gst/law/mulaw-decode.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index 2f95f056..3585a9cb 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -64,13 +64,8 @@ mulawdec_connect_sink (GstPad *pad, GstCaps *caps) gst_caps_set(newcaps,"width",GST_PROPS_INT(16)); gst_caps_set(newcaps,"signed",GST_PROPS_BOOLEAN(TRUE)); - if (GST_CAPS_IS_FIXED (newcaps)) { - if (gst_pad_try_set_caps (mulawdec->srcpad, newcaps)) - return GST_PAD_CONNECT_OK; - else - return GST_PAD_CONNECT_REFUSED; - } - + if (GST_CAPS_IS_FIXED (newcaps)) + return gst_pad_try_set_caps (mulawdec->srcpad, newcaps); return GST_PAD_CONNECT_DELAYED; } |