tests: fix tests
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 4 Nov 2011 17:47:10 +0000 (18:47 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 4 Nov 2011 17:47:10 +0000 (18:47 +0100)
Since blocks are not on both directions, we need to check in the block callback
if we are not blocking on an upstream event and let it pass.

tests/check/generic/sinks.c
tests/check/gst/gstevent.c

index 231d6e2..80d7905 100644 (file)
@@ -772,6 +772,9 @@ pad_blocked_cb (GstPad * pad, GstPadProbeType type, gpointer type_data,
   g_cond_signal (blocked_cond);
   g_mutex_unlock (blocked_lock);
 
+  if (GST_IS_EVENT (type_data) && GST_EVENT_IS_UPSTREAM (type_data))
+    return GST_PAD_PROBE_PASS;
+
   return GST_PAD_PROBE_OK;
 }
 
index c2d5e15..6534e41 100644 (file)
@@ -370,6 +370,9 @@ signal_blocked (GstPad * pad, GstPadProbeType type, gpointer type_data,
   signal_data_signal (data);
   GST_DEBUG ("signal done %p", data);
 
+  if (GST_IS_EVENT (type_data) && GST_EVENT_IS_UPSTREAM (type_data))
+    return GST_PAD_PROBE_PASS;
+
   return GST_PAD_PROBE_OK;
 }