mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
videorate: 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-base/-/merge_requests/1029>
This commit is contained in:
parent
aa230852ba
commit
328f7c0b48
2 changed files with 5 additions and 2 deletions
|
@ -172,6 +172,8 @@ static GParamSpec *pspec_duplicate = NULL;
|
||||||
|
|
||||||
#define gst_video_rate_parent_class parent_class
|
#define gst_video_rate_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstVideoRate, gst_video_rate, GST_TYPE_BASE_TRANSFORM);
|
G_DEFINE_TYPE (GstVideoRate, gst_video_rate, GST_TYPE_BASE_TRANSFORM);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (videorate, "videorate",
|
||||||
|
GST_RANK_NONE, GST_TYPE_VIDEO_RATE);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_video_rate_class_init (GstVideoRateClass * klass)
|
gst_video_rate_class_init (GstVideoRateClass * klass)
|
||||||
|
@ -1906,8 +1908,7 @@ plugin_init (GstPlugin * plugin)
|
||||||
GST_DEBUG_CATEGORY_INIT (video_rate_debug, "videorate", 0,
|
GST_DEBUG_CATEGORY_INIT (video_rate_debug, "videorate", 0,
|
||||||
"VideoRate stream fixer");
|
"VideoRate stream fixer");
|
||||||
|
|
||||||
return gst_element_register (plugin, "videorate", GST_RANK_NONE,
|
return GST_ELEMENT_REGISTER (videorate, plugin);
|
||||||
GST_TYPE_VIDEO_RATE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -75,5 +75,7 @@ struct _GstVideoRate
|
||||||
gdouble pending_rate;
|
gdouble pending_rate;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (videorate);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
#endif /* __GST_VIDEO_RATE_H__ */
|
#endif /* __GST_VIDEO_RATE_H__ */
|
||||||
|
|
Loading…
Reference in a new issue