diff --git a/tests/examples/app/appsrc-ra.c b/tests/examples/app/appsrc-ra.c index 973dabea78..46b19cae43 100644 --- a/tests/examples/app/appsrc-ra.c +++ b/tests/examples/app/appsrc-ra.c @@ -30,6 +30,11 @@ #include #include +/* FIXME: remove once we depend on GLib >= 2.22 */ +#if !GLIB_CHECK_VERSION (2, 22, 0) +#define g_mapped_file_unref g_mapped_file_free +#endif + GST_DEBUG_CATEGORY (appsrc_playbin_debug); #define GST_CAT_DEFAULT appsrc_playbin_debug @@ -215,7 +220,7 @@ main (int argc, char *argv[]) gst_element_set_state (app->playbin, GST_STATE_NULL); /* free the file */ - g_mapped_file_free (app->file); + g_mapped_file_unref (app->file); gst_object_unref (bus); g_main_loop_unref (app->loop); diff --git a/tests/examples/app/appsrc-seekable.c b/tests/examples/app/appsrc-seekable.c index e09a58e1a2..adff5bb9d5 100644 --- a/tests/examples/app/appsrc-seekable.c +++ b/tests/examples/app/appsrc-seekable.c @@ -30,6 +30,11 @@ #include #include +/* FIXME: remove once we depend on GLib >= 2.22 */ +#if !GLIB_CHECK_VERSION (2, 22, 0) +#define g_mapped_file_unref g_mapped_file_free +#endif + GST_DEBUG_CATEGORY (appsrc_playbin_debug); #define GST_CAT_DEFAULT appsrc_playbin_debug @@ -220,7 +225,7 @@ main (int argc, char *argv[]) gst_element_set_state (app->playbin, GST_STATE_NULL); /* free the file */ - g_mapped_file_free (app->file); + g_mapped_file_unref (app->file); gst_object_unref (bus); g_main_loop_unref (app->loop); diff --git a/tests/examples/app/appsrc-stream.c b/tests/examples/app/appsrc-stream.c index 7038cd3061..ea3286f29a 100644 --- a/tests/examples/app/appsrc-stream.c +++ b/tests/examples/app/appsrc-stream.c @@ -30,6 +30,11 @@ #include #include +/* FIXME: remove once we depend on GLib >= 2.22 */ +#if !GLIB_CHECK_VERSION (2, 22, 0) +#define g_mapped_file_unref g_mapped_file_free +#endif + GST_DEBUG_CATEGORY (appsrc_playbin_debug); #define GST_CAT_DEFAULT appsrc_playbin_debug @@ -240,7 +245,7 @@ main (int argc, char *argv[]) gst_element_set_state (app->playbin, GST_STATE_NULL); /* free the file */ - g_mapped_file_free (app->file); + g_mapped_file_unref (app->file); gst_object_unref (bus); g_main_loop_unref (app->loop); diff --git a/tests/examples/app/appsrc-stream2.c b/tests/examples/app/appsrc-stream2.c index dc1d8caa26..e0c8922a87 100644 --- a/tests/examples/app/appsrc-stream2.c +++ b/tests/examples/app/appsrc-stream2.c @@ -30,6 +30,11 @@ #include #include +/* FIXME: remove once we depend on GLib >= 2.22 */ +#if !GLIB_CHECK_VERSION (2, 22, 0) +#define g_mapped_file_unref g_mapped_file_free +#endif + GST_DEBUG_CATEGORY (appsrc_playbin_debug); #define GST_CAT_DEFAULT appsrc_playbin_debug @@ -210,7 +215,7 @@ main (int argc, char *argv[]) gst_element_set_state (app->playbin, GST_STATE_NULL); /* free the file */ - g_mapped_file_free (app->file); + g_mapped_file_unref (app->file); gst_object_unref (bus); g_main_loop_unref (app->loop);