tests: audiointerleave: Remove drain with manual clock
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 22 May 2017 22:52:27 +0000 (00:52 +0200)
committerOlivier Crête <olivier.crete@collabora.com>
Tue, 23 May 2017 10:35:58 +0000 (12:35 +0200)
Now that the queries go onto the queue, you may need to pull the crank
in order for them to be processed, making this test difficult.

tests/check/elements/audiointerleave.c

index f2e820b..71348f4 100644 (file)
@@ -980,7 +980,6 @@ GST_START_TEST (test_audiointerleave_2ch_smallbuf)
   GstHarness *h;
   GstHarness *h2;
   GstBuffer *buffer;
-  GstQuery *q;
   gint i;
   GstEvent *ev;
   GstCaps *ecaps, *caps;
@@ -1050,11 +1049,6 @@ GST_START_TEST (test_audiointerleave_2ch_smallbuf)
   fail_unless_equals_uint64 (gst_clock_get_time (GST_ELEMENT_CLOCK
           (h->element)), 750 * GST_MSECOND);
 
-  /*  Check that the queue is really empty */
-  q = gst_query_new_drain ();
-  gst_pad_peer_query (h->srcpad, q);
-  gst_query_unref (q);
-
   buffer = gst_harness_pull (h);
   sink_handoff_float32 (NULL, buffer, NULL, GUINT_TO_POINTER (3));
   gst_buffer_unref (buffer);