pbtypes: Add a stub plugin that owns the plugins-base dynamic types
authorJan Schmidt <jan@centricular.com>
Thu, 28 May 2015 12:50:05 +0000 (22:50 +1000)
committerJan Schmidt <jan@centricular.com>
Wed, 2 Nov 2016 00:24:11 +0000 (11:24 +1100)
https://bugzilla.gnome.org/show_bug.cgi?id=750079

configure.ac
gst/Makefile.am
gst/pbtypes/Makefile.am [new file with mode: 0644]
gst/pbtypes/gstpbtypes.c [new file with mode: 0644]

index f1b51f9..de894a6 100644 (file)
@@ -875,12 +875,13 @@ gst/adder/Makefile
 gst/app/Makefile
 gst/audioconvert/Makefile
 gst/audiorate/Makefile
+gst/audioresample/Makefile
 gst/audiotestsrc/Makefile
 gst/encoding/Makefile
 gst/videoconvert/Makefile
 gst/gio/Makefile
+gst/pbtypes/Makefile
 gst/playback/Makefile
-gst/audioresample/Makefile
 gst/subparse/Makefile
 gst/tcp/Makefile
 gst/typefind/Makefile
index f25a56d..3ed7c6f 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = $(GST_PLUGINS_SELECTED)
-DIST_SUBDIRS = $(GST_PLUGINS_ALL)
+SUBDIRS = $(GST_PLUGINS_SELECTED) pbtypes
+DIST_SUBDIRS = $(GST_PLUGINS_ALL) pbtypes
 
 include $(top_srcdir)/common/parallel-subdirs.mak
diff --git a/gst/pbtypes/Makefile.am b/gst/pbtypes/Makefile.am
new file mode 100644 (file)
index 0000000..bc735eb
--- /dev/null
@@ -0,0 +1,12 @@
+plugin_LTLIBRARIES = libgstpbtypes.la
+
+libgstpbtypes_la_SOURCES = gstpbtypes.c
+libgstpbtypes_la_CFLAGS = \
+       $(GST_PLUGINS_BASE_CFLAGS) \
+       $(GST_CFLAGS)
+libgstpbtypes_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstpbtypes_la_LIBADD = \
+       $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
+       $(GST_BASE_LIBS) $(GST_LIBS)
+
+libgstpbtypes_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
diff --git a/gst/pbtypes/gstpbtypes.c b/gst/pbtypes/gstpbtypes.c
new file mode 100644 (file)
index 0000000..6550516
--- /dev/null
@@ -0,0 +1,41 @@
+/* GStreamer
+ * Copyright (C) 2015 Jan Schmidt <jan@centricular.com>
+ *
+ * gstpbtypes: Plugin which registers extra caps types from plugins-base libs
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gst/gst.h>
+#include <gst/video/video.h>
+
+static gboolean
+plugin_init (GstPlugin * plugin)
+{
+  if (!gst_dynamic_type_register (plugin, GST_TYPE_VIDEO_MULTIVIEW_FLAGSET))
+    return FALSE;
+  return TRUE;
+}
+
+GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
+    GST_VERSION_MINOR,
+    pbtypes,
+    "gst-plugins-base dynamic types",
+    plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)