mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
zxing: 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
1277fd56b1
commit
9eb14d2d11
3 changed files with 3 additions and 2 deletions
|
@ -191,6 +191,7 @@ G_DEFINE_TYPE_WITH_CODE (GstZXing, gst_zxing,
|
|||
GST_TYPE_VIDEO_FILTER,
|
||||
GST_DEBUG_CATEGORY_INIT (zxing_debug, "zxing", 0,
|
||||
"debug category for zxing element"));
|
||||
GST_ELEMENT_REGISTER_DEFINE (zxing, "zxing", GST_RANK_MARGINAL, GST_TYPE_ZXING);
|
||||
|
||||
static void
|
||||
gst_zxing_class_init (GstZXingClass * g_class)
|
||||
|
|
|
@ -27,7 +27,7 @@ G_BEGIN_DECLS
|
|||
|
||||
#define GST_TYPE_ZXING gst_zxing_get_type ()
|
||||
G_DECLARE_FINAL_TYPE(GstZXing, gst_zxing, GST, ZXING, GstVideoFilter)
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (zxing);
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_VIDEO_ZXING_H__ */
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
gst_element_register (plugin, "zxing", GST_RANK_MARGINAL, GST_TYPE_ZXING);
|
||||
GST_ELEMENT_REGISTER (zxing, plugin);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue