From: Ronald S. Bultje Date: Tue, 1 Feb 2005 20:32:50 +0000 (+0000) Subject: testsuite/threads/threadi.c: Fix buglet in test. X-Git-Tag: RELEASE-0_8_9~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bdd55b8d18ea82aa567c9fac71c59844662027d;p=platform%2Fupstream%2Fgstreamer.git testsuite/threads/threadi.c: Fix buglet in test. Original commit message from CVS: * testsuite/threads/threadi.c: (cb_data): Fix buglet in test. --- diff --git a/ChangeLog b/ChangeLog index c3ffe4d..47f0ded 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-02-01 Ronald S. Bultje + * testsuite/threads/threadi.c: (cb_data): + Fix buglet in test. + +2005-02-01 Ronald S. Bultje + * testsuite/threads/Makefile.am: * testsuite/threads/threadi.c: (cb_data), (cb_play), (main): On Wim's request, split the test in three separately-compiled diff --git a/tests/old/testsuite/threads/threadi.c b/tests/old/testsuite/threads/threadi.c index 6fe8840..284e663 100644 --- a/tests/old/testsuite/threads/threadi.c +++ b/tests/old/testsuite/threads/threadi.c @@ -51,9 +51,14 @@ cb_eos (gpointer data) static void cb_data (gpointer data) { + static gboolean first = TRUE; + g_print ("Received data\n"); - g_idle_add ((GSourceFunc) cb_quit, NULL); + if (first) { + first = FALSE; + g_idle_add ((GSourceFunc) cb_quit, NULL); + } } #endif diff --git a/testsuite/threads/threadi.c b/testsuite/threads/threadi.c index 6fe8840..284e663 100644 --- a/testsuite/threads/threadi.c +++ b/testsuite/threads/threadi.c @@ -51,9 +51,14 @@ cb_eos (gpointer data) static void cb_data (gpointer data) { + static gboolean first = TRUE; + g_print ("Received data\n"); - g_idle_add ((GSourceFunc) cb_quit, NULL); + if (first) { + first = FALSE; + g_idle_add ((GSourceFunc) cb_quit, NULL); + } } #endif