tests: don't use deprecated GLib API g_mapped_file_free

Fixes #605100.
This commit is contained in:
Tim-Philipp Müller 2009-12-21 07:50:26 +00:00
parent b3c15a340a
commit 6ce1ff2188
4 changed files with 24 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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