[gst-cvs] gst-plugins-good: tests: add some debug, send newsegment

Wim Taymans wtay at kemper.freedesktop.org
Tue Jun 16 06:26:14 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: d1606beaca2f8c51a2c895bfe0f6e0cd3576af67
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=d1606beaca2f8c51a2c895bfe0f6e0cd3576af67

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Jun 16 15:25:54 2009 +0200

tests: add some debug, send newsegment

---

 tests/check/elements/udpsink.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

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");





More information about the Gstreamer-commits mailing list