mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
When we unref a caps, don't unref the chained caps
Original commit message from CVS: When we unref a caps, don't unref the chained caps
This commit is contained in:
parent
09f50aa47e
commit
a4aa00288b
2 changed files with 1 additions and 6 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 2a013c06fe9bf1379966cd12e6bf8c30915c5f12
|
||||
Subproject commit 5b6a58f419c3d6fdd4abbe9943cd17a4fd2addcc
|
|
@ -217,7 +217,6 @@ GstCaps*
|
|||
gst_caps_unref (GstCaps *caps)
|
||||
{
|
||||
gboolean zero;
|
||||
GstCaps **next;
|
||||
|
||||
if (caps == NULL)
|
||||
return NULL;
|
||||
|
@ -226,10 +225,6 @@ gst_caps_unref (GstCaps *caps)
|
|||
|
||||
caps->refcount--;
|
||||
zero = (caps->refcount == 0);
|
||||
next = &caps->next;
|
||||
|
||||
if (*next)
|
||||
*next = gst_caps_unref (*next);
|
||||
|
||||
if (zero) {
|
||||
gst_caps_destroy (caps);
|
||||
|
|
Loading…
Reference in a new issue