diff options
Diffstat (limited to 'gst/segmentclip')
-rw-r--r-- | gst/segmentclip/gstaudiosegmentclip.c | 2 | ||||
-rw-r--r-- | gst/segmentclip/gstaudiosegmentclip.h | 1 | ||||
-rw-r--r-- | gst/segmentclip/gstvideosegmentclip.c | 2 | ||||
-rw-r--r-- | gst/segmentclip/gstvideosegmentclip.h | 1 | ||||
-rw-r--r-- | gst/segmentclip/plugin.c | 11 |
5 files changed, 11 insertions, 6 deletions
diff --git a/gst/segmentclip/gstaudiosegmentclip.c b/gst/segmentclip/gstaudiosegmentclip.c index 434424a45..4c4ca72cb 100644 --- a/gst/segmentclip/gstaudiosegmentclip.c +++ b/gst/segmentclip/gstaudiosegmentclip.c @@ -45,6 +45,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_audio_segment_clip_debug); G_DEFINE_TYPE (GstAudioSegmentClip, gst_audio_segment_clip, GST_TYPE_SEGMENT_CLIP); +GST_ELEMENT_REGISTER_DEFINE (audiosegmentclip, "audiosegmentclip", + GST_RANK_NONE, GST_TYPE_AUDIO_SEGMENT_CLIP); static void gst_audio_segment_clip_class_init (GstAudioSegmentClipClass * klass) diff --git a/gst/segmentclip/gstaudiosegmentclip.h b/gst/segmentclip/gstaudiosegmentclip.h index 234172e0c..ccaa9d7b3 100644 --- a/gst/segmentclip/gstaudiosegmentclip.h +++ b/gst/segmentclip/gstaudiosegmentclip.h @@ -55,6 +55,7 @@ struct _GstAudioSegmentClipClass }; GType gst_audio_segment_clip_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (audiosegmentclip); G_END_DECLS diff --git a/gst/segmentclip/gstvideosegmentclip.c b/gst/segmentclip/gstvideosegmentclip.c index 34ba58b59..70576340a 100644 --- a/gst/segmentclip/gstvideosegmentclip.c +++ b/gst/segmentclip/gstvideosegmentclip.c @@ -45,6 +45,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_video_segment_clip_debug); G_DEFINE_TYPE (GstVideoSegmentClip, gst_video_segment_clip, GST_TYPE_SEGMENT_CLIP); +GST_ELEMENT_REGISTER_DEFINE (videosegmentclip, "videosegmentclip", + GST_RANK_NONE, GST_TYPE_VIDEO_SEGMENT_CLIP); static void gst_video_segment_clip_class_init (GstVideoSegmentClipClass * klass) diff --git a/gst/segmentclip/gstvideosegmentclip.h b/gst/segmentclip/gstvideosegmentclip.h index f49f2a442..6f321f114 100644 --- a/gst/segmentclip/gstvideosegmentclip.h +++ b/gst/segmentclip/gstvideosegmentclip.h @@ -54,6 +54,7 @@ struct _GstVideoSegmentClipClass }; GType gst_video_segment_clip_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (videosegmentclip); G_END_DECLS diff --git a/gst/segmentclip/plugin.c b/gst/segmentclip/plugin.c index 9f4cbb9c0..358ec5581 100644 --- a/gst/segmentclip/plugin.c +++ b/gst/segmentclip/plugin.c @@ -27,13 +27,12 @@ static gboolean plugin_init (GstPlugin * plugin) { - if (!gst_element_register (plugin, "audiosegmentclip", GST_RANK_NONE, - GST_TYPE_AUDIO_SEGMENT_CLIP) || - !gst_element_register (plugin, "videosegmentclip", GST_RANK_NONE, - GST_TYPE_VIDEO_SEGMENT_CLIP)) - return FALSE; + gboolean ret = FALSE; - return TRUE; + ret |= GST_ELEMENT_REGISTER (audiosegmentclip, plugin); + ret |= GST_ELEMENT_REGISTER (videosegmentclip, plugin); + + return ret; } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, |