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);
This commit is contained in:
Benjamin Otte 2002-02-17 21:19:13 +00:00
parent 92eb128d0f
commit 9c5e022c92

View file

@ -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) {