summaryrefslogtreecommitdiffstats
path: root/gst/virtualdub
diff options
context:
space:
mode:
Diffstat (limited to 'gst/virtualdub')
-rw-r--r--gst/virtualdub/gstxsharpen.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gst/virtualdub/gstxsharpen.c b/gst/virtualdub/gstxsharpen.c
index 1d85b59f..f42ad7d0 100644
--- a/gst/virtualdub/gstxsharpen.c
+++ b/gst/virtualdub/gstxsharpen.c
@@ -147,11 +147,7 @@ gst_xsharpen_sinkconnect (GstPad * pad, GstCaps * caps)
sharpen->dstpitch = sharpen->srcpitch = sharpen->width * sizeof (Pixel32);
- if (gst_pad_try_set_caps (sharpen->srcpad, caps)) {
- return GST_PAD_CONNECT_OK;
- }
-
- return GST_PAD_CONNECT_REFUSED;
+ return gst_pad_try_set_caps (sharpen->srcpad, caps);
}
static void