mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
check: testclock: don't put code with side-effects in g_assert()
Fixes unit test failures when -DG_DISABLE_ASSERT is used. https://bugzilla.gnome.org/show_bug.cgi?id=706551
This commit is contained in:
parent
c4539db3c1
commit
cc4ba028ff
1 changed files with 2 additions and 2 deletions
|
@ -785,8 +785,8 @@ gst_test_clock_wait_for_next_pending_id (GstTestClock * test_clock,
|
||||||
while (priv->entry_contexts == NULL)
|
while (priv->entry_contexts == NULL)
|
||||||
g_cond_wait (&priv->entry_added_cond, GST_OBJECT_GET_LOCK (test_clock));
|
g_cond_wait (&priv->entry_added_cond, GST_OBJECT_GET_LOCK (test_clock));
|
||||||
|
|
||||||
g_assert (gst_test_clock_peek_next_pending_id_unlocked (test_clock,
|
if (!gst_test_clock_peek_next_pending_id_unlocked (test_clock, pending_id))
|
||||||
pending_id));
|
g_assert_not_reached ();
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (test_clock);
|
GST_OBJECT_UNLOCK (test_clock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue