Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
coreelements: allow per features registration
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661>
- Loading branch information
Stéphane Cerveau
committed
Dec 10, 2020
1 parent
a41f37d
commit 783e19b
Showing
26 changed files
with
193 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright (C) 2020 Huawei Technologies Co., Ltd. | ||
* @Author: Stéphane Cerveau <scerveau@collabora.com> | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef __GST_CORE_ELEMENTS_ELEMENTS_H__ | ||
#define __GST_CORE_ELEMENTS_ELEMENTS_H__ | ||
|
||
#include <gst/gst.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
GST_ELEMENT_REGISTER_DECLARE (capsfilter); | ||
GST_ELEMENT_REGISTER_DECLARE (clocksync); | ||
GST_ELEMENT_REGISTER_DECLARE (concat); | ||
GST_ELEMENT_REGISTER_DECLARE (dataurisrc); | ||
GST_ELEMENT_REGISTER_DECLARE (downloadbuffer); | ||
GST_ELEMENT_REGISTER_DECLARE (fakesink); | ||
GST_ELEMENT_REGISTER_DECLARE (fakesrc); | ||
#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER) | ||
GST_ELEMENT_REGISTER_DECLARE (fdsrc); | ||
GST_ELEMENT_REGISTER_DECLARE (fdsink); | ||
#endif | ||
GST_ELEMENT_REGISTER_DECLARE (filesink); | ||
GST_ELEMENT_REGISTER_DECLARE (filesrc); | ||
GST_ELEMENT_REGISTER_DECLARE (funnel); | ||
GST_ELEMENT_REGISTER_DECLARE (identity); | ||
GST_ELEMENT_REGISTER_DECLARE (input_selector); | ||
GST_ELEMENT_REGISTER_DECLARE (multiqueue); | ||
GST_ELEMENT_REGISTER_DECLARE (output_selector); | ||
GST_ELEMENT_REGISTER_DECLARE (queue); | ||
GST_ELEMENT_REGISTER_DECLARE (queue2); | ||
GST_ELEMENT_REGISTER_DECLARE (streamiddemux); | ||
GST_ELEMENT_REGISTER_DECLARE (tee); | ||
GST_ELEMENT_REGISTER_DECLARE (typefind); | ||
GST_ELEMENT_REGISTER_DECLARE (valve); | ||
|
||
G_END_DECLS | ||
|
||
#endif /* __GST_CORE_ELEMENTS_ELEMENTS_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* GStreamer | ||
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> | ||
* 2000 Wim Taymans <wtay@chello.be> | ||
* | ||
* gstelementsplugin.c: | ||
* | ||
* 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. | ||
*/ | ||
/** | ||
* plugin-coreelements: | ||
* | ||
* GStreamer core elements | ||
*/ | ||
|
||
#ifdef HAVE_CONFIG_H | ||
# include "config.h" | ||
#endif | ||
|
||
#include <gst/gst.h> | ||
|
||
#include "gstcoreelementselements.h" | ||
|
||
|
||
static gboolean | ||
plugin_init (GstPlugin * plugin) | ||
{ | ||
gboolean ret = FALSE; | ||
|
||
ret |= GST_ELEMENT_REGISTER (capsfilter, plugin); | ||
ret |= GST_ELEMENT_REGISTER (clocksync, plugin); | ||
ret |= GST_ELEMENT_REGISTER (concat, plugin); | ||
ret |= GST_ELEMENT_REGISTER (dataurisrc, plugin); | ||
ret |= GST_ELEMENT_REGISTER (downloadbuffer, plugin); | ||
ret |= GST_ELEMENT_REGISTER (fakesrc, plugin); | ||
ret |= GST_ELEMENT_REGISTER (fakesink, plugin); | ||
#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER) | ||
ret |= GST_ELEMENT_REGISTER (fdsrc, plugin); | ||
ret |= GST_ELEMENT_REGISTER (fdsink, plugin); | ||
#endif | ||
ret |= GST_ELEMENT_REGISTER (filesrc, plugin); | ||
ret |= GST_ELEMENT_REGISTER (funnel, plugin); | ||
ret |= GST_ELEMENT_REGISTER (identity, plugin); | ||
ret |= GST_ELEMENT_REGISTER (input_selector, plugin); | ||
ret |= GST_ELEMENT_REGISTER (output_selector, plugin); | ||
ret |= GST_ELEMENT_REGISTER (queue, plugin); | ||
ret |= GST_ELEMENT_REGISTER (queue2, plugin); | ||
ret |= GST_ELEMENT_REGISTER (filesink, plugin); | ||
ret |= GST_ELEMENT_REGISTER (tee, plugin); | ||
ret |= GST_ELEMENT_REGISTER (typefind, plugin); | ||
ret |= GST_ELEMENT_REGISTER (multiqueue, plugin); | ||
ret |= GST_ELEMENT_REGISTER (valve, plugin); | ||
ret |= GST_ELEMENT_REGISTER (streamiddemux, plugin); | ||
|
||
return ret; | ||
} | ||
|
||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, coreelements, | ||
"GStreamer core elements", plugin_init, VERSION, GST_LICENSE, | ||
GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.