projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4b6bcb
)
value: fix buffer compare function
author
Tim-Philipp Müller
<tim@centricular.net>
Sat, 23 Jun 2012 15:30:03 +0000
(16:30 +0100)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sat, 23 Jun 2012 15:30:03 +0000
(16:30 +0100)
gst/gstvalue.c
patch
|
blob
|
history
diff --git
a/gst/gstvalue.c
b/gst/gstvalue.c
index
c9f344b
..
044db84
100644
(file)
--- a/
gst/gstvalue.c
+++ b/
gst/gstvalue.c
@@
-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, &info
2
);
+ gst_buffer_unmap (buf1, &info
1
);
return GST_VALUE_UNORDERED;
}
if (memcmp (info1.data, info2.data, info1.size) == 0)
result = GST_VALUE_EQUAL;
- gst_buffer_unmap (buf
2
, &info1);
- gst_buffer_unmap (buf
1
, &info2);
+ gst_buffer_unmap (buf
1
, &info1);
+ gst_buffer_unmap (buf
2
, &info2);
return result;
}