diff --git a/docs/libs/gstreamer-libs-sections.txt b/docs/libs/gstreamer-libs-sections.txt index 4c72c8dd34..8fc90aae82 100644 --- a/docs/libs/gstreamer-libs-sections.txt +++ b/docs/libs/gstreamer-libs-sections.txt @@ -1289,7 +1289,7 @@ gst_harness_stress_statechange_start_full gst_harness_stress_push_buffer_start gst_harness_stress_push_buffer_start_full -GstHarnessPrepareBuffer +GstHarnessPrepareBufferFunc gst_harness_stress_push_buffer_with_cb_start gst_harness_stress_push_buffer_with_cb_start_full diff --git a/libs/gst/check/gstharness.c b/libs/gst/check/gstharness.c index 831ca75f3c..ebac739828 100644 --- a/libs/gst/check/gstharness.c +++ b/libs/gst/check/gstharness.c @@ -2338,7 +2338,7 @@ typedef struct GstCaps *caps; GstSegment segment; - GstHarnessPrepareBuffer func; + GstHarnessPrepareBufferFunc func; gpointer data; GDestroyNotify notify; } GstHarnessPushBufferThread; @@ -2725,9 +2725,9 @@ gst_harness_stress_push_buffer_start_full (GstHarness * h, * @h: a #GstHarness * @caps: a #GstCaps for the #GstBuffer * @segment: a #GstSegment - * @func: a #GstHarnessPrepareBuffer function called before every iteration + * @func: a #GstHarnessPrepareBufferFunc function called before every iteration * to prepare / create a #GstBuffer for pushing - * @data: a #gpointer with data to the #GstHarnessPrepareBuffer function + * @data: a #gpointer with data to the #GstHarnessPrepareBufferFunc function * @notify: a #GDestroyNotify that is called for every push to allow cleaning * up the #GstBuffer. (like gst_buffer_unref) * @sleep: a #gulong specifying how long to sleep in (microseconds) for @@ -2744,7 +2744,7 @@ gst_harness_stress_push_buffer_start_full (GstHarness * h, GstHarnessThread * gst_harness_stress_push_buffer_with_cb_start_full (GstHarness * h, GstCaps * caps, const GstSegment * segment, - GstHarnessPrepareBuffer func, gpointer data, GDestroyNotify notify, + GstHarnessPrepareBufferFunc func, gpointer data, GDestroyNotify notify, gulong sleep) { GstHarnessPushBufferThread *t = g_slice_new0 (GstHarnessPushBufferThread); diff --git a/libs/gst/check/gstharness.h b/libs/gst/check/gstharness.h index ba3bd86bb1..29a2bb8065 100644 --- a/libs/gst/check/gstharness.h +++ b/libs/gst/check/gstharness.h @@ -182,12 +182,19 @@ GstHarnessThread * gst_harness_stress_statechange_start_full (GstHarness * h, GstHarnessThread * gst_harness_stress_push_buffer_start_full (GstHarness * h, GstCaps * caps, const GstSegment * segment, GstBuffer * buf, gulong sleep); -typedef GstBuffer * (*GstHarnessPrepareBuffer) (GstHarness * h, gpointer data); +/** + * GstHarnessPrepareBufferFunc: + * @h: a #GstHarness + * @data: user data + * + * Since: 1.6 + */ +typedef GstBuffer * (*GstHarnessPrepareBufferFunc) (GstHarness * h, gpointer data); #define gst_harness_stress_push_buffer_with_cb_start(h, c, s, f, d, n) \ gst_harness_stress_push_buffer_with_cb_start_full (h, c, s, f, d, n, 0) GstHarnessThread * gst_harness_stress_push_buffer_with_cb_start_full ( GstHarness * h, GstCaps * caps, const GstSegment * segment, - GstHarnessPrepareBuffer func, gpointer data, GDestroyNotify notify, + GstHarnessPrepareBufferFunc func, gpointer data, GDestroyNotify notify, gulong sleep); #define gst_harness_stress_push_event_start(h, e) \