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:
f9facc6
)
volume: cast outputs to correct type before comparing
author
Stefan Sauer
<ensonic@users.sf.net>
Wed, 25 Apr 2012 16:42:04 +0000
(18:42 +0200)
committer
Stefan Sauer
<ensonic@users.sf.net>
Wed, 25 Apr 2012 18:09:17 +0000
(20:09 +0200)
tests/check/elements/volume.c
patch
|
blob
|
history
diff --git
a/tests/check/elements/volume.c
b/tests/check/elements/volume.c
index
99806e3
..
340d56d
100644
(file)
--- a/
tests/check/elements/volume.c
+++ b/
tests/check/elements/volume.c
@@
-1694,7
+1694,7
@@
GST_START_TEST (test_passthrough)
GstElement *volume;
GstBuffer *inbuffer, *outbuffer;
GstCaps *caps;
GstElement *volume;
GstBuffer *inbuffer, *outbuffer;
GstCaps *caps;
- gint16 in[2] = { 16384, -256 };
+ gint16
*out,
in[2] = { 16384, -256 };
GstMapInfo map;
volume = setup_volume ();
GstMapInfo map;
volume = setup_volume ();
@@
-1718,8
+1718,8
@@
GST_START_TEST (test_passthrough)
fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL);
fail_unless (inbuffer == outbuffer);
gst_buffer_map (outbuffer, &map, GST_MAP_READ);
fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL);
fail_unless (inbuffer == outbuffer);
gst_buffer_map (outbuffer, &map, GST_MAP_READ);
- GST_INFO ("expected %+5d %+5d real %+5d %+5d", in[0], in[1], map.data[0],
-
map.data
[1]);
+ out = (gint16 *) map.data;
+
GST_INFO ("expected %+5d %+5d real %+5d %+5d", in[0], in[1], out[0], out
[1]);
fail_unless (memcmp (map.data, in, 4) == 0);
gst_buffer_unmap (outbuffer, &map);
fail_unless (memcmp (map.data, in, 4) == 0);
gst_buffer_unmap (outbuffer, &map);
@@
-1763,7
+1763,7
@@
GST_START_TEST (test_controller_processing)
GstElement *volume;
GstBuffer *inbuffer, *outbuffer;
GstCaps *caps;
GstElement *volume;
GstBuffer *inbuffer, *outbuffer;
GstCaps *caps;
- gint16 in[2] = { 16384, -256 };
+ gint16
*out,
in[2] = { 16384, -256 };
GstMapInfo map;
GstSegment seg;
GstMapInfo map;
GstSegment seg;
@@
-1798,8
+1798,8
@@
GST_START_TEST (test_controller_processing)
fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL);
fail_unless (inbuffer == outbuffer);
gst_buffer_map (outbuffer, &map, GST_MAP_READ);
fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL);
fail_unless (inbuffer == outbuffer);
gst_buffer_map (outbuffer, &map, GST_MAP_READ);
- GST_INFO ("expected %+5d %+5d real %+5d %+5d", in[0], in[1], map.data[0],
-
map.data
[1]);
+ out = (gint16 *) map.data;
+
GST_INFO ("expected %+5d %+5d real %+5d %+5d", in[0], in[1], out[0], out
[1]);
fail_unless (memcmp (map.data, in, 4) == 0);
gst_buffer_unmap (outbuffer, &map);
fail_unless (memcmp (map.data, in, 4) == 0);
gst_buffer_unmap (outbuffer, &map);