summaryrefslogtreecommitdiff
path: root/gst/passthrough/gstpassthrough.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/passthrough/gstpassthrough.c')
-rw-r--r--gst/passthrough/gstpassthrough.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/passthrough/gstpassthrough.c b/gst/passthrough/gstpassthrough.c
index 870e6be9b..841da95bd 100644
--- a/gst/passthrough/gstpassthrough.c
+++ b/gst/passthrough/gstpassthrough.c
@@ -153,9 +153,8 @@ passthrough_connect_sink (GstPad *pad, GstCaps *caps)
}
}
- if (GST_CAPS_IS_FIXED (caps) && ! gst_pad_try_set_caps (filter->srcpad, caps))
- return GST_PAD_CONNECT_REFUSED;
-
+ if (GST_CAPS_IS_FIXED (caps))
+ return gst_pad_try_set_caps (filter->srcpad, caps);
return GST_PAD_CONNECT_DELAYED;
}