From 284f96765c57c1488e41b9fc332d6f719cd9defa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 4 Aug 2012 23:29:27 +0100 Subject: [PATCH] pbutils: use generic marshaller for discoverer's "discovered" signal If this change causes build issues, run git clean -x -d -f; ./autogen.sh --- gst-libs/gst/pbutils/Makefile.am | 8 ++------ gst-libs/gst/pbutils/gstdiscoverer.c | 7 +++---- gst-libs/gst/pbutils/pbutils-marshal.list | 2 -- 3 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 gst-libs/gst/pbutils/pbutils-marshal.list diff --git a/gst-libs/gst/pbutils/Makefile.am b/gst-libs/gst/pbutils/Makefile.am index f2e7c3121..4ec3ae62c 100644 --- a/gst-libs/gst/pbutils/Makefile.am +++ b/gst-libs/gst/pbutils/Makefile.am @@ -32,8 +32,7 @@ libgstpbutils_@GST_API_VERSION@_la_SOURCES = \ gstdiscoverer-types.c nodist_libgstpbutils_@GST_API_VERSION@_la_SOURCES = \ - pbutils-enumtypes.c \ - pbutils-marshal.c + pbutils-enumtypes.c libgstpbutils_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/pbutils libgstpbutils_@GST_API_VERSION@include_HEADERS = \ @@ -43,7 +42,6 @@ nodist_libgstpbutils_@GST_API_VERSION@include_HEADERS = \ pbutils-enumtypes.h noinst_HEADERS = \ pbutils-private.h -EXTRA_DIST = pbutils-marshal.list libgstpbutils_@GST_API_VERSION@_la_LIBADD = \ $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \ @@ -54,9 +52,7 @@ libgstpbutils_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAG BUILT_SOURCES = \ pbutils-enumtypes.c \ - pbutils-enumtypes.h \ - pbutils-marshal.c \ - pbutils-marshal.h + pbutils-enumtypes.h CLEANFILES = $(BUILT_SOURCES) diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index a0c223441..0b53ff483 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -45,7 +45,6 @@ #include #include "pbutils.h" -#include "pbutils-marshal.h" #include "pbutils-private.h" #include "gst/glib-compat-private.h" @@ -241,7 +240,7 @@ gst_discoverer_class_init (GstDiscovererClass * klass) gst_discoverer_signals[SIGNAL_DISCOVERED] = g_signal_new ("discovered", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDiscovererClass, discovered), - NULL, NULL, pbutils_marshal_VOID__POINTER_BOXED, + NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, GST_TYPE_DISCOVERER_INFO, G_TYPE_ERROR | G_SIGNAL_TYPE_STATIC_SCOPE); } @@ -1167,8 +1166,8 @@ discoverer_collect (GstDiscoverer * dc) gst_caps_get_structure (dc->priv->current_info->stream_info->caps, 0); if (g_str_has_prefix (gst_structure_get_name (st), "image/")) - ((GstDiscovererVideoInfo *) dc->priv->current_info->stream_info)-> - is_image = TRUE; + ((GstDiscovererVideoInfo *) dc->priv->current_info-> + stream_info)->is_image = TRUE; } } diff --git a/gst-libs/gst/pbutils/pbutils-marshal.list b/gst-libs/gst/pbutils/pbutils-marshal.list deleted file mode 100644 index f409996c1..000000000 --- a/gst-libs/gst/pbutils/pbutils-marshal.list +++ /dev/null @@ -1,2 +0,0 @@ -# pbutils marshallers -VOID:POINTER,BOXED -- 2.34.1