From 0d4409ce49b54137b4792786313179e629e62081 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 25 Jun 2008 13:15:50 +0000 Subject: [PATCH] tests/examples/seek/: Remove libgstvideo usage. Use gtk_get_option_group instead of gtk_init(). Original commit message from CVS: * tests/examples/seek/Makefile.am: * tests/examples/seek/seek.c: Remove libgstvideo usage. Use gtk_get_option_group instead of gtk_init(). --- ChangeLog | 7 +++++++ tests/examples/seek/Makefile.am | 3 +-- tests/examples/seek/seek.c | 4 +--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 705b64c..55166c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-25 Stefan Kost + + * tests/examples/seek/Makefile.am: + * tests/examples/seek/seek.c: + Remove libgstvideo usage. Use gtk_get_option_group instead of + gtk_init(). + 2008-06-24 Stefan Kost * tests/check/Makefile.am: diff --git a/tests/examples/seek/Makefile.am b/tests/examples/seek/Makefile.am index 88d17c8..a2f2e41 100644 --- a/tests/examples/seek/Makefile.am +++ b/tests/examples/seek/Makefile.am @@ -7,6 +7,5 @@ examples = $(GTK_EXAMPLES) noinst_PROGRAMS = $(examples) LDADD = $(GST_LIBS) $(GTK_LIBS) \ - $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \ - $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la + $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la AM_CFLAGS = $(GST_CFLAGS) $(GTK_CFLAGS) -I$(top_builddir)/gst-libs diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index a966402..757455a 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -29,7 +29,6 @@ #include #include #include -#include GST_DEBUG_CATEGORY_STATIC (seek_debug); #define GST_CAT_DEFAULT (seek_debug) @@ -2253,6 +2252,7 @@ main (int argc, char **argv) ctx = g_option_context_new ("- test seeking in gsteamer"); g_option_context_add_main_entries (ctx, options, NULL); g_option_context_add_group (ctx, gst_init_get_option_group ()); + g_option_context_add_group (ctx, gtk_get_option_group (TRUE)); if (!g_option_context_parse (ctx, &argc, &argv, &err)) { g_print ("Error initializing: %s\n", err->message); @@ -2261,8 +2261,6 @@ main (int argc, char **argv) GST_DEBUG_CATEGORY_INIT (seek_debug, "seek", 0, "seek example"); - gtk_init (&argc, &argv); - if (argc != 3) { print_usage (argc, argv); exit (-1); -- 2.7.4