mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
testsuite/threads/threadi.c: Fix buglet in test.
Original commit message from CVS: * testsuite/threads/threadi.c: (cb_data): Fix buglet in test.
This commit is contained in:
parent
edc6803ed1
commit
4bdd55b8d1
3 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-02-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* testsuite/threads/threadi.c: (cb_data):
|
||||||
|
Fix buglet in test.
|
||||||
|
|
||||||
2005-02-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2005-02-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* testsuite/threads/Makefile.am:
|
* testsuite/threads/Makefile.am:
|
||||||
|
|
|
@ -51,9 +51,14 @@ cb_eos (gpointer data)
|
||||||
static void
|
static void
|
||||||
cb_data (gpointer data)
|
cb_data (gpointer data)
|
||||||
{
|
{
|
||||||
|
static gboolean first = TRUE;
|
||||||
|
|
||||||
g_print ("Received data\n");
|
g_print ("Received data\n");
|
||||||
|
|
||||||
|
if (first) {
|
||||||
|
first = FALSE;
|
||||||
g_idle_add ((GSourceFunc) cb_quit, NULL);
|
g_idle_add ((GSourceFunc) cb_quit, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -51,9 +51,14 @@ cb_eos (gpointer data)
|
||||||
static void
|
static void
|
||||||
cb_data (gpointer data)
|
cb_data (gpointer data)
|
||||||
{
|
{
|
||||||
|
static gboolean first = TRUE;
|
||||||
|
|
||||||
g_print ("Received data\n");
|
g_print ("Received data\n");
|
||||||
|
|
||||||
|
if (first) {
|
||||||
|
first = FALSE;
|
||||||
g_idle_add ((GSourceFunc) cb_quit, NULL);
|
g_idle_add ((GSourceFunc) cb_quit, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue