mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
Fix bug in _gst_caps_value_copy() that could cause GValue corruption
Original commit message from CVS: Fix bug in _gst_caps_value_copy() that could cause GValue corruption
This commit is contained in:
parent
fa4316c123
commit
473c2e6446
1 changed files with 2 additions and 0 deletions
|
@ -698,6 +698,8 @@ static void _gst_caps_value_copy (const GValue *src, GValue *dest)
|
|||
{
|
||||
if (dest->data[0].v_pointer) {
|
||||
gst_caps_free (dest->data[0].v_pointer);
|
||||
}
|
||||
if (src->data[0].v_pointer) {
|
||||
dest->data[0].v_pointer = gst_caps_copy (src->data[0].v_pointer);
|
||||
} else {
|
||||
dest->data[0].v_pointer = NULL;
|
||||
|
|
Loading…
Reference in a new issue