mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
pbtypes: Add a stub plugin that owns the plugins-base dynamic types
https://bugzilla.gnome.org/show_bug.cgi?id=750079
This commit is contained in:
parent
14ce96a459
commit
2c786edb99
4 changed files with 57 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
12
gst/pbtypes/Makefile.am
Normal file
12
gst/pbtypes/Makefile.am
Normal file
|
@ -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)
|
41
gst/pbtypes/gstpbtypes.c
Normal file
41
gst/pbtypes/gstpbtypes.c
Normal file
|
@ -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)
|
Loading…
Reference in a new issue