From 62d2803d5d988dee67cb89a1a94377257f2bd486 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 2 Jan 2004 19:10:44 +0000 Subject: [PATCH] gst/gstpad.c: Fix wrong g_return_if_fail Original commit message from CVS: 2004-01-02 Benjamin Otte * gst/gstpad.c: (gst_pad_try_relink_filtered): Fix wrong g_return_if_fail --- ChangeLog | 5 +++++ gst/gstpad.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 62bf383..c4b8201 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-02 Benjamin Otte + + * gst/gstpad.c: (gst_pad_try_relink_filtered): + Fix wrong g_return_if_fail + 2004-01-03 Jan Schmidt * gst/gstbin.c: (gst_bin_class_init): diff --git a/gst/gstpad.c b/gst/gstpad.c index 3b2c127..37da29a 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1909,7 +1909,8 @@ gst_pad_try_relink_filtered (GstPad *srcpad, GstPad *sinkpad, g_return_val_if_fail (realsrc != NULL, FALSE); g_return_val_if_fail (realsink != NULL, FALSE); - g_return_val_if_fail (GST_RPAD_PEER (realsrc) == GST_RPAD_PEER (realsink), FALSE); + g_return_val_if_fail (GST_RPAD_PEER (realsrc) == realsink, FALSE); + g_assert (realsrc == GST_RPAD_PEER (realsink)); if ((GST_PAD (realsrc) != srcpad) || (GST_PAD (realsink) != sinkpad)) { GST_CAT_INFO (GST_CAT_PADS, "*actually* linking %s:%s and %s:%s", GST_DEBUG_PAD_NAME (realsrc), GST_DEBUG_PAD_NAME (realsink)); -- 2.7.4