mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
92eb128d0f
commit
9c5e022c92
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue