mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +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_TYPE_VIDEO_FILTER,
|
||||||
GST_DEBUG_CATEGORY_INIT (zxing_debug, "zxing", 0,
|
GST_DEBUG_CATEGORY_INIT (zxing_debug, "zxing", 0,
|
||||||
"debug category for zxing element"));
|
"debug category for zxing element"));
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (zxing, "zxing", GST_RANK_MARGINAL, GST_TYPE_ZXING);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_zxing_class_init (GstZXingClass * g_class)
|
gst_zxing_class_init (GstZXingClass * g_class)
|
||||||
|
|
|
@ -27,7 +27,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_ZXING gst_zxing_get_type ()
|
#define GST_TYPE_ZXING gst_zxing_get_type ()
|
||||||
G_DECLARE_FINAL_TYPE(GstZXing, gst_zxing, GST, ZXING, GstVideoFilter)
|
G_DECLARE_FINAL_TYPE(GstZXing, gst_zxing, GST, ZXING, GstVideoFilter)
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (zxing);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_VIDEO_ZXING_H__ */
|
#endif /* __GST_VIDEO_ZXING_H__ */
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
gst_element_register (plugin, "zxing", GST_RANK_MARGINAL, GST_TYPE_ZXING);
|
GST_ELEMENT_REGISTER (zxing, plugin);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue