From d1606beaca2f8c51a2c895bfe0f6e0cd3576af67 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 16 Jun 2009 15:25:54 +0200 Subject: [PATCH] tests: add some debug, send newsegment --- tests/check/elements/udpsink.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/check/elements/udpsink.c b/tests/check/elements/udpsink.c index a6e42b7..62f380d 100644 --- a/tests/check/elements/udpsink.c +++ b/tests/check/elements/udpsink.c @@ -56,7 +56,12 @@ udpsink_render (GstBaseSink * sink, GstBufferList * list) GstBuffer *buf; /* Loop through all buffers in the current group */ while ((buf = gst_buffer_list_iterator_next (it))) { - render_list_bytes_received += GST_BUFFER_SIZE (buf); + guint size; + + size = GST_BUFFER_SIZE (buf); + GST_DEBUG ("rendered %u bytes", size); + + render_list_bytes_received += size; } } @@ -153,6 +158,9 @@ udpsink_test (gboolean use_buffer_lists) gst_element_set_state (udpsink, GST_STATE_PLAYING); + gst_pad_push_event (srcpad, gst_event_new_new_segment_full (FALSE, 1.0, 1.0, + GST_FORMAT_TIME, 0, -1, 0)); + gst_pad_push_list (srcpad, list); gst_check_teardown_pad_by_name (udpsink, "sink"); -- 2.7.4