mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
testclock: add back gst_test_clock_wait_for_pending_id_count()
.. but deprecate it. ABI stability and all that. It's a dangerous and racy function to use.
This commit is contained in:
parent
f30ab21ba7
commit
8d4f245942
3 changed files with 32 additions and 1 deletions
|
@ -102,7 +102,7 @@ LIBGSTCHECK_EXPORTED_FUNCS = \
|
||||||
gst_test_clock_has_id \
|
gst_test_clock_has_id \
|
||||||
gst_test_clock_peek_next_pending_id \
|
gst_test_clock_peek_next_pending_id \
|
||||||
gst_test_clock_wait_for_next_pending_id \
|
gst_test_clock_wait_for_next_pending_id \
|
||||||
gst_test_clock_wait_for_multiple_pending_ids \
|
gst_test_clock_wait_for_pending_id_count \
|
||||||
gst_test_clock_process_next_clock_id \
|
gst_test_clock_process_next_clock_id \
|
||||||
gst_test_clock_get_next_entry_time \
|
gst_test_clock_get_next_entry_time \
|
||||||
gst_test_clock_wait_for_multiple_pending_ids \
|
gst_test_clock_wait_for_multiple_pending_ids \
|
||||||
|
|
|
@ -875,6 +875,32 @@ gst_test_clock_wait_for_next_pending_id (GstTestClock * test_clock,
|
||||||
GST_OBJECT_UNLOCK (test_clock);
|
GST_OBJECT_UNLOCK (test_clock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_test_clock_wait_for_pending_id_count:
|
||||||
|
* @test_clock: #GstTestClock for which to await having enough pending clock
|
||||||
|
* @count: the number of pending clock notifications to wait for
|
||||||
|
*
|
||||||
|
* Blocks until at least @count clock notifications have been requested from
|
||||||
|
* @test_clock. There is no timeout for this wait, see the main description of
|
||||||
|
* #GstTestClock.
|
||||||
|
*
|
||||||
|
* Since: 1.2
|
||||||
|
*
|
||||||
|
* Deprecated: use gst_test_clock_wait_for_multiple_pending_ids() instead.
|
||||||
|
*/
|
||||||
|
#ifndef GST_REMOVE_DEPRECATED
|
||||||
|
#ifdef GST_DISABLE_DEPRECATED
|
||||||
|
void gst_test_clock_wait_for_pending_id_count (GstTestClock * test_clock,
|
||||||
|
guint count);
|
||||||
|
#endif
|
||||||
|
void
|
||||||
|
gst_test_clock_wait_for_pending_id_count (GstTestClock * test_clock,
|
||||||
|
guint count)
|
||||||
|
{
|
||||||
|
gst_test_clock_wait_for_multiple_pending_ids (test_clock, count, NULL);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_test_clock_process_next_clock_id:
|
* gst_test_clock_process_next_clock_id:
|
||||||
* @test_clock: a #GstTestClock for which to retrieve the next pending clock
|
* @test_clock: a #GstTestClock for which to retrieve the next pending clock
|
||||||
|
|
|
@ -113,6 +113,11 @@ gboolean gst_test_clock_peek_next_pending_id (GstTestClock * test_clock,
|
||||||
void gst_test_clock_wait_for_next_pending_id (GstTestClock * test_clock,
|
void gst_test_clock_wait_for_next_pending_id (GstTestClock * test_clock,
|
||||||
GstClockID * pending_id);
|
GstClockID * pending_id);
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_DEPRECATED
|
||||||
|
void gst_test_clock_wait_for_pending_id_count (GstTestClock * test_clock,
|
||||||
|
guint count);
|
||||||
|
#endif
|
||||||
|
|
||||||
GstClockID gst_test_clock_process_next_clock_id (GstTestClock * test_clock);
|
GstClockID gst_test_clock_process_next_clock_id (GstTestClock * test_clock);
|
||||||
|
|
||||||
GstClockTime gst_test_clock_get_next_entry_time (GstTestClock * test_clock);
|
GstClockTime gst_test_clock_get_next_entry_time (GstTestClock * test_clock);
|
||||||
|
|
Loading…
Reference in a new issue