tests: fix tests

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.
This commit is contained in:
Wim Taymans 2011-11-04 18:47:10 +01:00
parent b6fbeb8fed
commit a8cc106ba8
2 changed files with 6 additions and 0 deletions

View 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;
}

View 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;
}