diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-08-06 10:23:56 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-08-06 10:24:51 +0100 |
commit | b36666d571234cd3a699af33676fdb4955fc90d0 (patch) | |
tree | 579efa4fd66a1593f513fb62e16e233d52ad1a95 | |
parent | c91c4e4b8a0e0e913801bc063a4eff43bd9dea27 (diff) |
tests: fix 'Attempt to unlock mutex that was not locked' in gnlcomposition test
Locking is all a bit weird in this test, but at least
it doesn't abort any longer.
-rw-r--r-- | tests/check/gnl/gnlcomposition.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check/gnl/gnlcomposition.c b/tests/check/gnl/gnlcomposition.c index 43f604d..1710e2f 100644 --- a/tests/check/gnl/gnlcomposition.c +++ b/tests/check/gnl/gnlcomposition.c @@ -185,9 +185,11 @@ GST_START_TEST (test_change_object_start_stop_in_current_stack) gst_bin_add (GST_BIN (comp), source1); g_signal_emit_by_name (comp, "commit", TRUE, &ret); + g_mutex_lock (&pad_added_lock); g_cond_wait (&pad_added_cond, &pad_added_lock); fail_unless_equals_int (composition_pad_added, 2); fail_unless_equals_int (composition_pad_removed, 1); + g_mutex_unlock (&pad_added_lock); seek_events_before = seek_events; |