testclock: add support for waiting and releasing multiple GstClockIDs
authorHavard Graff <havard.graff@gmail.com>
Mon, 16 Dec 2013 09:01:37 +0000 (10:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 12 Apr 2014 14:33:31 +0000 (15:33 +0100)
commit3892cc4c2df7634a3e70fb41727a2c727b116fb8
treef3d806a35859eb511545e6d587f7c45f03d92bb4
parentcb554772e5c868b0766b445f98de0b52c0e162d6
testclock: add support for waiting and releasing multiple GstClockIDs

In order to be deterministic, multiple waiting GstClockIDs needs to be
released at the same time, or else one can get into the situation that
the one being released first can add itself back again before the next
one waiting is released.

Test added for new API and old tests rewritten to comply.
libs/gst/check/Makefile.am
libs/gst/check/gsttestclock.c
libs/gst/check/gsttestclock.h
tests/check/libs/gsttestclock.c