summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-02-02 13:59:48 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-02-02 13:59:48 +0000
commitbbf23ce2c78e0ef58aff9427b49de1646fc09594 (patch)
tree986cde9988ba14020443268ba561356a7c77a2d7
parent19a845c0d75835df2ebf6dcb05b4a7dfd2c85ffd (diff)
downloadgstreamer-plugins-bad-bbf23ce2c78e0ef58aff9427b49de1646fc09594.tar.gz
Cleanups
Original commit message from CVS: Cleanups
-rw-r--r--gst/passthrough/gstpassthrough.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/passthrough/gstpassthrough.c b/gst/passthrough/gstpassthrough.c
index af9c674ce..caa25598c 100644
--- a/gst/passthrough/gstpassthrough.c
+++ b/gst/passthrough/gstpassthrough.c
@@ -117,8 +117,8 @@ passthrough_connect_sink (GstPad *pad, GstCaps *caps)
g_return_val_if_fail (caps != NULL, GST_PAD_CONNECT_DELAYED);
filter = GST_PASSTHROUGH (gst_pad_get_parent (pad));
- g_return_if_fail (filter != NULL);
- g_return_if_fail (GST_IS_PASSTHROUGH (filter));
+ g_return_val_if_fail (filter != NULL, GST_PAD_CONNECT_REFUSED);
+ g_return_val_if_fail (GST_IS_PASSTHROUGH (filter), GST_PAD_CONNECT_REFUSED);
format = gst_caps_get_string(caps, "format");