mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
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:
parent
b6fbeb8fed
commit
a8cc106ba8
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue