Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
videotestsrc: allow per feature registration
  • Loading branch information
Stéphane Cerveau authored and GStreamer Marge Bot committed Mar 16, 2021
1 parent 90f640d commit b490579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gst/videotestsrc/gstvideotestsrc.c
Expand Up @@ -109,6 +109,8 @@ GST_STATIC_PAD_TEMPLATE ("src",

#define gst_video_test_src_parent_class parent_class
G_DEFINE_TYPE (GstVideoTestSrc, gst_video_test_src, GST_TYPE_PUSH_SRC);
GST_ELEMENT_REGISTER_DEFINE (videotestsrc, "videotestsrc",
GST_RANK_NONE, GST_TYPE_VIDEO_TEST_SRC);

static void gst_video_test_src_set_pattern (GstVideoTestSrc * videotestsrc,
int pattern_type);
Expand Down Expand Up @@ -1269,8 +1271,7 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG_CATEGORY_INIT (video_test_src_debug, "videotestsrc", 0,
"Video Test Source");

return gst_element_register (plugin, "videotestsrc", GST_RANK_NONE,
GST_TYPE_VIDEO_TEST_SRC);
return GST_ELEMENT_REGISTER (videotestsrc, plugin);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Expand Down
2 changes: 2 additions & 0 deletions gst/videotestsrc/gstvideotestsrc.h
Expand Up @@ -198,6 +198,8 @@ struct _GstVideoTestSrc {
gpointer *lines;
};

GST_ELEMENT_REGISTER_DECLARE (videotestsrc);

G_END_DECLS

#endif /* __GST_VIDEO_TEST_SRC_H__ */

0 comments on commit b490579

Please sign in to comment.