From 9c5e022c921fe7d870963bfc2ac9f827e69b5f46 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 17 Feb 2002 21:19:13 +0000 Subject: [PATCH] appending caps to themself is not fatal, is it? Original commit message from CVS: appending caps to themself is not fatal, is it? If it is, revert the patch, but please allow gst_caps_append (NULL, NULL); --- gst/gstcaps.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 9d3be71..75ecec2 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -486,9 +486,7 @@ gst_caps_append (GstCaps *caps, GstCaps *capstoadd) { GstCaps *orig = caps; - g_return_val_if_fail (caps != capstoadd, caps); - - if (caps == NULL) + if (caps == NULL || caps == capstoadd) return capstoadd; while (caps->next) { -- 2.7.4