harness: rename GstHarnessPrepareBuffer -> GstHarnessPrepareBufferFunc

https://bugzilla.gnome.org/show_bug.cgi?id=751916
This commit is contained in:
Tim-Philipp Müller 2015-07-07 00:56:41 +01:00
parent 49c896db3a
commit ac79c7f05a
3 changed files with 14 additions and 7 deletions

View file

@ -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

View file

@ -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);

View file

@ -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) \