Skip to content

Commit

Permalink
videoscale: 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 328f7c0 commit 90f640d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gst/videoscale/gstvideoscale.c
Expand Up @@ -210,6 +210,8 @@ static void gst_video_scale_get_property (GObject * object, guint prop_id,

#define gst_video_scale_parent_class parent_class
G_DEFINE_TYPE (GstVideoScale, gst_video_scale, GST_TYPE_VIDEO_FILTER);
GST_ELEMENT_REGISTER_DEFINE (videoscale, "videoscale",
GST_RANK_NONE, GST_TYPE_VIDEO_SCALE);

static GstCapsFeatures *features_format_interlaced,
*features_format_interlaced_sysmem;
Expand Down Expand Up @@ -1238,8 +1240,7 @@ plugin_init (GstPlugin * plugin)
"videoscale element");
GST_DEBUG_CATEGORY_GET (CAT_PERFORMANCE, "GST_PERFORMANCE");

return gst_element_register (plugin, "videoscale", GST_RANK_NONE,
GST_TYPE_VIDEO_SCALE);
return GST_ELEMENT_REGISTER (videoscale, plugin);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Expand Down
2 changes: 2 additions & 0 deletions gst/videoscale/gstvideoscale.h
Expand Up @@ -86,6 +86,8 @@ struct _GstVideoScale {
gint borders_w;
};

GST_ELEMENT_REGISTER_DECLARE (videoscale);

G_END_DECLS

#endif /* __GST_VIDEO_SCALE_H__ */

0 comments on commit 90f640d

Please sign in to comment.