mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
value: fix buffer compare function
This commit is contained in:
parent
e4b6bcb7b9
commit
533ecb8840
1 changed files with 3 additions and 3 deletions
|
@ -2000,15 +2000,15 @@ gst_value_compare_buffer (const GValue * value1, const GValue * value2)
|
||||||
return GST_VALUE_UNORDERED;
|
return GST_VALUE_UNORDERED;
|
||||||
|
|
||||||
if (!gst_buffer_map (buf2, &info2, GST_MAP_READ)) {
|
if (!gst_buffer_map (buf2, &info2, GST_MAP_READ)) {
|
||||||
gst_buffer_unmap (buf1, &info2);
|
gst_buffer_unmap (buf1, &info1);
|
||||||
return GST_VALUE_UNORDERED;
|
return GST_VALUE_UNORDERED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp (info1.data, info2.data, info1.size) == 0)
|
if (memcmp (info1.data, info2.data, info1.size) == 0)
|
||||||
result = GST_VALUE_EQUAL;
|
result = GST_VALUE_EQUAL;
|
||||||
|
|
||||||
gst_buffer_unmap (buf2, &info1);
|
gst_buffer_unmap (buf1, &info1);
|
||||||
gst_buffer_unmap (buf1, &info2);
|
gst_buffer_unmap (buf2, &info2);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue