summaryrefslogtreecommitdiff
path: root/tests/check/transmitter/shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check/transmitter/shm.c')
-rw-r--r--tests/check/transmitter/shm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/check/transmitter/shm.c b/tests/check/transmitter/shm.c
index d23ff3d3..3c9257f6 100644
--- a/tests/check/transmitter/shm.c
+++ b/tests/check/transmitter/shm.c
@@ -131,14 +131,14 @@ _handoff_handler (GstElement *element, GstBuffer *buffer, GstPad *pad,
{
gint component_id = GPOINTER_TO_INT (user_data);
- ts_fail_unless (GST_BUFFER_SIZE (buffer) == component_id * 10,
- "Buffer is size %d but component_id is %d", GST_BUFFER_SIZE (buffer),
+ ts_fail_unless (gst_buffer_get_size (buffer) == component_id * 10,
+ "Buffer is size %d but component_id is %d", gst_buffer_get_size (buffer),
component_id);
buffer_count[component_id-1]++;
GST_LOG ("Buffer %d component: %d size: %u", buffer_count[component_id-1],
- component_id, GST_BUFFER_SIZE (buffer));
+ component_id, gst_buffer_get_size (buffer));
ts_fail_if (buffer_count[component_id-1] > 20,
"Too many buffers %d > 20 for component",
@@ -180,7 +180,8 @@ _known_source_packet_received (FsStreamTransmitter *st, guint component_id,
received_known[component_id - 1]++;
GST_LOG ("Known source buffer %d component: %d size: %u",
- received_known[component_id-1], component_id, GST_BUFFER_SIZE (buffer));
+ received_known[component_id-1], component_id,
+ gst_buffer_get_size (buffer));
}
void