Skip to content

Commit

Permalink
videorate: 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 aa23085 commit 328f7c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gst/videorate/gstvideorate.c
Expand Up @@ -172,6 +172,8 @@ static GParamSpec *pspec_duplicate = NULL;

#define gst_video_rate_parent_class parent_class
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
gst_video_rate_class_init (GstVideoRateClass * klass)
Expand Down Expand Up @@ -1906,8 +1908,7 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG_CATEGORY_INIT (video_rate_debug, "videorate", 0,
"VideoRate stream fixer");

return gst_element_register (plugin, "videorate", GST_RANK_NONE,
GST_TYPE_VIDEO_RATE);
return GST_ELEMENT_REGISTER (videorate, plugin);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Expand Down
2 changes: 2 additions & 0 deletions gst/videorate/gstvideorate.h
Expand Up @@ -75,5 +75,7 @@ struct _GstVideoRate
gdouble pending_rate;
};

GST_ELEMENT_REGISTER_DECLARE (videorate);

G_END_DECLS
#endif /* __GST_VIDEO_RATE_H__ */

0 comments on commit 328f7c0

Please sign in to comment.