diff -r 71e347f905f2 -r 4a7fac7dd34a gstreamer_core/tsrc/check/elements/gstqueue/src/gstqueue.c --- a/gstreamer_core/tsrc/check/elements/gstqueue/src/gstqueue.c Fri Mar 19 09:35:09 2010 +0200 +++ b/gstreamer_core/tsrc/check/elements/gstqueue/src/gstqueue.c Fri Apr 16 15:15:52 2010 +0300 @@ -33,11 +33,20 @@ void create_xml(int result) { + if(result) + { assert_failed = 1; - + } + testResultXml(xmlfile); close_log_file(); + + if(result) + { + exit (-1); + } + } #include "libgstreamer_wsd_solution.h" @@ -315,12 +324,13 @@ /* pushing gives away my reference ... */ gst_pad_push (mysrcpad, gst_buffer_ref (buffer3)); - g_mutex_lock (check_mutex); + //g_mutex_lock (check_mutex); /* start the src-task briefly leak buffer3 */ gst_pad_set_active (mysinkpad, TRUE); - g_cond_wait (check_cond, check_mutex); - g_mutex_unlock (check_mutex); - + //g_cond_wait (check_cond, check_mutex); + //g_mutex_unlock (check_mutex); + /// wait for second thread to read buffer. + sleep(2); gst_pad_set_active (mysinkpad, FALSE); GST_DEBUG ("stopping"); @@ -406,12 +416,12 @@ /* pushing gives away my reference ... */ gst_pad_push (mysrcpad, buffer3); - g_mutex_lock (check_mutex); + //g_mutex_lock (check_mutex); /* start the src-task briefly and leak buffer1 */ gst_pad_set_active (mysinkpad, TRUE); - g_cond_wait (check_cond, check_mutex); - g_mutex_unlock (check_mutex); - + //g_cond_wait (check_cond, check_mutex); + //g_mutex_unlock (check_mutex); + sleep(2); gst_pad_set_active (mysinkpad, FALSE); GST_DEBUG ("stopping");