mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
directfb: allow per feature 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/gst-plugins-bad/-/merge_requests/2038>
This commit is contained in:
parent
447ea8372e
commit
8e1d1325fb
2 changed files with 9 additions and 10 deletions
|
@ -512,8 +512,12 @@ G_DEFINE_TYPE_WITH_CODE (GstDfbVideoSink, gst_dfbvideosink, GST_TYPE_VIDEO_SINK,
|
|||
G_IMPLEMENT_INTERFACE (GST_TYPE_NAVIGATION,
|
||||
gst_dfbvideosink_navigation_init);
|
||||
G_IMPLEMENT_INTERFACE (GST_TYPE_COLOR_BALANCE,
|
||||
gst_dfbvideosink_colorbalance_init));
|
||||
|
||||
gst_dfbvideosink_colorbalance_init);
|
||||
GST_DEBUG_CATEGORY_INIT (dfbvideosink_debug, "dfbvideosink", 0,
|
||||
"DirectFB video sink element");
|
||||
);
|
||||
GST_ELEMENT_REGISTER_DEFINE (dfbvideosink, "dfbvideosink", GST_RANK_MARGINAL,
|
||||
GST_TYPE_DFBVIDEOSINK);
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
static const char *
|
||||
gst_dfbvideosink_get_format_name (DFBSurfacePixelFormat format)
|
||||
|
@ -2460,14 +2464,7 @@ gst_dfbvideosink_class_init (GstDfbVideoSinkClass * klass)
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
if (!gst_element_register (plugin, "dfbvideosink", GST_RANK_MARGINAL,
|
||||
GST_TYPE_DFBVIDEOSINK))
|
||||
return FALSE;
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (dfbvideosink_debug, "dfbvideosink", 0,
|
||||
"DirectFB video sink element");
|
||||
|
||||
return TRUE;
|
||||
return GST_ELEMENT_REGISTER (dfbvideosink, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -156,6 +156,8 @@ struct _GstDfbVideoSinkClass {
|
|||
GType gst_dfbvideosink_get_type (void);
|
||||
GType gst_dfb_buffer_pool_get_type (void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (dfbvideosink);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_DFBVIDEOSINK_H__ */
|
||||
|
|
Loading…
Reference in a new issue