diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-27 14:49:58 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-27 15:47:07 +0000 |
commit | 8147669971151c33d12c645a242406e518291ff0 (patch) | |
tree | 95fcad2d1c8066f768d85fcfdc8547e5660322d2 /tests/examples | |
parent | f4d6e03b9b36e76d57745438178d3ddacddb9247 (diff) |
plenty: fixup glib deprecations
Diffstat (limited to 'tests/examples')
-rw-r--r-- | tests/examples/camerabin/gst-camera-perf.c | 2 | ||||
-rw-r--r-- | tests/examples/camerabin/gst-camerabin-test.c | 2 | ||||
-rw-r--r-- | tests/examples/camerabin2/gst-camerabin2-test.c | 2 | ||||
-rw-r--r-- | tests/examples/mxf/mxfdemux-structure.c | 2 | ||||
-rw-r--r-- | tests/examples/scaletempo/Makefile.am | 2 | ||||
-rw-r--r-- | tests/examples/scaletempo/demo-gui.c | 1 | ||||
-rw-r--r-- | tests/examples/scaletempo/demo-main.c | 2 |
7 files changed, 12 insertions, 1 deletions
diff --git a/tests/examples/camerabin/gst-camera-perf.c b/tests/examples/camerabin/gst-camera-perf.c index c5554a0e3..0c56ee6e5 100644 --- a/tests/examples/camerabin/gst-camera-perf.c +++ b/tests/examples/camerabin/gst-camera-perf.c @@ -979,8 +979,10 @@ main (int argc, char *argv[]) GOptionContext *ctx; GError *err = NULL; +#if !GLIB_CHECK_VERSION (2, 31, 0) if (!g_thread_supported ()) g_thread_init (NULL); +#endif ctx = g_option_context_new (NULL); g_option_context_add_main_entries (ctx, options, NULL); diff --git a/tests/examples/camerabin/gst-camerabin-test.c b/tests/examples/camerabin/gst-camerabin-test.c index 27037fad3..3f16a7fe5 100644 --- a/tests/examples/camerabin/gst-camerabin-test.c +++ b/tests/examples/camerabin/gst-camerabin-test.c @@ -786,8 +786,10 @@ main (int argc, char *argv[]) GOptionContext *ctx; GError *err = NULL; +#if !GLIB_CHECK_VERSION (2, 31, 0) if (!g_thread_supported ()) g_thread_init (NULL); +#endif ctx = g_option_context_new ("\n\ncamerabin command line test application."); g_option_context_add_main_entries (ctx, options, NULL); diff --git a/tests/examples/camerabin2/gst-camerabin2-test.c b/tests/examples/camerabin2/gst-camerabin2-test.c index f112dbcb3..cb4b00872 100644 --- a/tests/examples/camerabin2/gst-camerabin2-test.c +++ b/tests/examples/camerabin2/gst-camerabin2-test.c @@ -1257,8 +1257,10 @@ main (int argc, char *argv[]) GOptionContext *ctx; GError *err = NULL; +#if !GLIB_CHECK_VERSION (2, 31, 0) if (!g_thread_supported ()) g_thread_init (NULL); +#endif ctx = g_option_context_new ("\n\ncamerabin command line test application."); g_option_context_add_main_entries (ctx, options, NULL); diff --git a/tests/examples/mxf/mxfdemux-structure.c b/tests/examples/mxf/mxfdemux-structure.c index 6f735c4da..8a6c1b667 100644 --- a/tests/examples/mxf/mxfdemux-structure.c +++ b/tests/examples/mxf/mxfdemux-structure.c @@ -184,8 +184,10 @@ main (gint argc, gchar ** argv) return -1; } +#if !GLIB_CHECK_VERSION (2, 31, 0) if (!g_thread_supported ()) g_thread_init (NULL); +#endif gst_init (NULL, NULL); gtk_init (NULL, NULL); diff --git a/tests/examples/scaletempo/Makefile.am b/tests/examples/scaletempo/Makefile.am index 5cdf3c7f0..500e51123 100644 --- a/tests/examples/scaletempo/Makefile.am +++ b/tests/examples/scaletempo/Makefile.am @@ -1,7 +1,7 @@ noinst_PROGRAMS = scaletempo-demo scaletempo_demo_SOURCES = demo-main.c demo-player.c demo-gui.c -scaletempo_demo_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GTK_CFLAGS) +scaletempo_demo_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_PLUGINS_BAD_CFLAGS) $(GTK_CFLAGS) scaletempo_demo_LDFLAGS = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) $(GTK_LIBS) -lgstinterfaces-@GST_MAJORMINOR@ noinst_HEADERS = demo-player.h demo-gui.h diff --git a/tests/examples/scaletempo/demo-gui.c b/tests/examples/scaletempo/demo-gui.c index c31c2bf19..61a5a66eb 100644 --- a/tests/examples/scaletempo/demo-gui.c +++ b/tests/examples/scaletempo/demo-gui.c @@ -19,6 +19,7 @@ #include "config.h" #endif +#include <gst/glib-compat-private.h> #include <gtk/gtk.h> #include <glib/gprintf.h> #include <math.h> diff --git a/tests/examples/scaletempo/demo-main.c b/tests/examples/scaletempo/demo-main.c index 6ddcde71d..d2ed0df11 100644 --- a/tests/examples/scaletempo/demo-main.c +++ b/tests/examples/scaletempo/demo-main.c @@ -60,8 +60,10 @@ main (int argc, char *argv[]) {NULL,} }; +#if !GLIB_CHECK_VERSION (2, 31, 0) if (!g_thread_supported ()) g_thread_init (NULL); +#endif ctx = g_option_context_new ("uri ..."); g_option_context_add_group (ctx, gst_init_get_option_group ()); |