Skip to content

Commit

Permalink
videoconvert: allow per feature registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Cerveau authored and GStreamer Marge Bot committed Mar 16, 2021
1 parent a3875c7 commit aa23085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gst/videoconvert/gstvideoconvert.c
Expand Up @@ -56,6 +56,8 @@ static GQuark _colorspace_quark;

#define gst_video_convert_parent_class parent_class
G_DEFINE_TYPE (GstVideoConvert, gst_video_convert, GST_TYPE_VIDEO_FILTER);
GST_ELEMENT_REGISTER_DEFINE (videoconvert, "videoconvert",
GST_RANK_NONE, GST_TYPE_VIDEO_CONVERT);

#define DEFAULT_PROP_DITHER GST_VIDEO_DITHER_BAYER
#define DEFAULT_PROP_DITHER_QUANTIZATION 1
Expand Down Expand Up @@ -859,8 +861,7 @@ plugin_init (GstPlugin * plugin)
gst_caps_features_add (features_format_interlaced_sysmem,
GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY);

return gst_element_register (plugin, "videoconvert",
GST_RANK_NONE, GST_TYPE_VIDEO_CONVERT);
return GST_ELEMENT_REGISTER (videoconvert, plugin);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Expand Down
2 changes: 2 additions & 0 deletions gst/videoconvert/gstvideoconvert.h
Expand Up @@ -54,6 +54,8 @@ struct _GstVideoConvert {
gint n_threads;
};

GST_ELEMENT_REGISTER_DECLARE (videoconvert);

G_END_DECLS

#endif /* __GST_VIDEOCONVERT_H__ */

0 comments on commit aa23085

Please sign in to comment.