mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ximagesink: Fix caps leak
Unref caps when peer doesn't accept caps Fixes #613198
This commit is contained in:
parent
433f18db8e
commit
621705f475
1 changed files with 1 additions and 0 deletions
|
@ -1864,6 +1864,7 @@ gst_ximagesink_buffer_alloc (GstBaseSink * bsink, guint64 offset, guint size,
|
||||||
desired_caps);
|
desired_caps);
|
||||||
/* we alloc a buffer with the original incomming caps already in the
|
/* we alloc a buffer with the original incomming caps already in the
|
||||||
* width and height variables */
|
* width and height variables */
|
||||||
|
gst_caps_unref (desired_caps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue