[farsight2/master] Only print the buffer count every 10 buffers in test
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:20 PST 2008
---
tests/check/main/rtpconference.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/check/main/rtpconference.c b/tests/check/main/rtpconference.c
index 0d0a0df..5861354 100644
--- a/tests/check/main/rtpconference.c
+++ b/tests/check/main/rtpconference.c
@@ -143,15 +143,16 @@ _handoff_handler (GstElement *element, GstBuffer *buffer, GstPad *pad,
{
struct SimpleTestConference *dat = user_data;
- g_debug ("%d: Buffer %d", dat->id, dat->buffer_count);
-
dat->buffer_count++;
+ if (dat->buffer_count % 10 == 0)
+ g_debug ("%d: Buffer %d", dat->id, dat->buffer_count);
+
/*
fail_if (dat->buffer_count > 20,
"Too many buffers %d > 20", dat->buffer_count);
*/
-
+
if (dat1->buffer_count >= 20 && dat2->buffer_count >= 20) {
/* TEST OVER */
g_main_loop_quit (loop);
--
1.5.6.5
More information about the farsight-commits
mailing list