diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-12-21 07:50:26 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-12-21 07:50:26 +0000 |
commit | 6ce1ff2188c9a91cb8d09a2fc3a15cbe8f0fcc95 (patch) | |
tree | 96a8fb427f78f17fdc4a1c1c29da3d9674fffda3 /tests/examples/app/appsrc-seekable.c | |
parent | b3c15a340a71afabf416710706e3a9d03bc1cbbe (diff) |
tests: don't use deprecated GLib API g_mapped_file_free
Fixes #605100.
Diffstat (limited to 'tests/examples/app/appsrc-seekable.c')
-rw-r--r-- | tests/examples/app/appsrc-seekable.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/examples/app/appsrc-seekable.c b/tests/examples/app/appsrc-seekable.c index e09a58e1a..adff5bb9d 100644 --- a/tests/examples/app/appsrc-seekable.c +++ b/tests/examples/app/appsrc-seekable.c @@ -30,6 +30,11 @@ #include <string.h> #include <stdlib.h> +/* 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); |