value: fix buffer compare function

This commit is contained in:
Tim-Philipp Müller 2012-06-23 16:30:03 +01:00
parent e4b6bcb7b9
commit 533ecb8840

View file

@ -2000,15 +2000,15 @@ gst_value_compare_buffer (const GValue * value1, const GValue * value2)
return GST_VALUE_UNORDERED;
if (!gst_buffer_map (buf2, &info2, GST_MAP_READ)) {
gst_buffer_unmap (buf1, &info2);
gst_buffer_unmap (buf1, &info1);
return GST_VALUE_UNORDERED;
}
if (memcmp (info1.data, info2.data, info1.size) == 0)
result = GST_VALUE_EQUAL;
gst_buffer_unmap (buf2, &info1);
gst_buffer_unmap (buf1, &info2);
gst_buffer_unmap (buf1, &info1);
gst_buffer_unmap (buf2, &info2);
return result;
}