diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-09-15 11:26:48 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-09-15 11:26:48 +0200 |
commit | 7ac1938f0f4d176b07eadd2e4eb703cb9e24f468 (patch) | |
tree | b64c0f219e20a717628feddcab1903acfdf351b7 /tests | |
parent | 129af0d8e6a74e8edef3e77c3626616b674b7cc1 (diff) |
video: Add a destroy notify parameter to gst_video_convert_frame_async()
Binding generators apparently need this as they can't really know
that the callback is guaranteed to be called exactly once and that
the user_data can be freed at the end of it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/libs/video.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/check/libs/video.c b/tests/check/libs/video.c index 96cd7a391..796f33c3e 100644 --- a/tests/check/libs/video.c +++ b/tests/check/libs/video.c @@ -680,7 +680,8 @@ GST_START_TEST (test_convert_frame_async) loop = cf_data.loop = g_main_loop_new (NULL, FALSE); gst_video_convert_frame_async (from_buffer, to_caps, GST_CLOCK_TIME_NONE, - (GstVideoConvertFrameCallback) convert_frame_async_callback, &cf_data); + (GstVideoConvertFrameCallback) convert_frame_async_callback, &cf_data, + NULL); g_main_loop_run (loop); @@ -693,7 +694,8 @@ GST_START_TEST (test_convert_frame_async) to_caps = gst_video_format_new_caps (GST_VIDEO_FORMAT_I420, 240, 320, 25, 1, 1, 2); gst_video_convert_frame_async (from_buffer, to_caps, GST_CLOCK_TIME_NONE, - (GstVideoConvertFrameCallback) convert_frame_async_callback, &cf_data); + (GstVideoConvertFrameCallback) convert_frame_async_callback, &cf_data, + NULL); g_main_loop_run (loop); fail_unless (cf_data.buffer != NULL); fail_unless (gst_caps_can_intersect (to_caps, |