summaryrefslogtreecommitdiff
path: root/gst/rawparse
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rawparse')
-rw-r--r--gst/rawparse/gstaudioparse.c2
-rw-r--r--gst/rawparse/gstaudioparse.h1
-rw-r--r--gst/rawparse/gstvideoparse.c2
-rw-r--r--gst/rawparse/gstvideoparse.h1
-rw-r--r--gst/rawparse/plugin.c8
5 files changed, 9 insertions, 5 deletions
diff --git a/gst/rawparse/gstaudioparse.c b/gst/rawparse/gstaudioparse.c
index 6e4c647bd..3e737626f 100644
--- a/gst/rawparse/gstaudioparse.c
+++ b/gst/rawparse/gstaudioparse.c
@@ -122,6 +122,8 @@ gst_audio_parse_format_get_type (void)
#define gst_audio_parse_parent_class parent_class
G_DEFINE_TYPE (GstAudioParse, gst_audio_parse, GST_TYPE_BIN);
+GST_ELEMENT_REGISTER_DEFINE (audioparse, "audioparse", GST_RANK_NONE,
+ gst_audio_parse_get_type ());
static void
gst_audio_parse_class_init (GstAudioParseClass * klass)
diff --git a/gst/rawparse/gstaudioparse.h b/gst/rawparse/gstaudioparse.h
index 41b23d444..22039e723 100644
--- a/gst/rawparse/gstaudioparse.h
+++ b/gst/rawparse/gstaudioparse.h
@@ -50,5 +50,6 @@ struct _GstAudioParseClass
};
GType gst_audio_parse_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audioparse);
#endif /* __GST_AUDIO_PARSE_H__ */
diff --git a/gst/rawparse/gstvideoparse.c b/gst/rawparse/gstvideoparse.c
index ee931a9f7..35942821c 100644
--- a/gst/rawparse/gstvideoparse.c
+++ b/gst/rawparse/gstvideoparse.c
@@ -82,6 +82,8 @@ enum
#define gst_video_parse_parent_class parent_class
G_DEFINE_TYPE (GstVideoParse, gst_video_parse, GST_TYPE_BIN);
+GST_ELEMENT_REGISTER_DEFINE (videoparse, "videoparse", GST_RANK_NONE,
+ gst_video_parse_get_type ());
static void
gst_video_parse_class_init (GstVideoParseClass * klass)
diff --git a/gst/rawparse/gstvideoparse.h b/gst/rawparse/gstvideoparse.h
index 57b9b686d..59391e0c6 100644
--- a/gst/rawparse/gstvideoparse.h
+++ b/gst/rawparse/gstvideoparse.h
@@ -51,5 +51,6 @@ struct _GstVideoParseClass
};
GType gst_video_parse_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (videoparse);
#endif /* __GST_VIDEO_PARSE_H__ */
diff --git a/gst/rawparse/plugin.c b/gst/rawparse/plugin.c
index d7de87693..0487b502a 100644
--- a/gst/rawparse/plugin.c
+++ b/gst/rawparse/plugin.c
@@ -9,12 +9,10 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
- gboolean ret;
+ gboolean ret = FALSE;
- ret = gst_element_register (plugin, "videoparse", GST_RANK_NONE,
- gst_video_parse_get_type ());
- ret &= gst_element_register (plugin, "audioparse", GST_RANK_NONE,
- gst_audio_parse_get_type ());
+ ret |= GST_ELEMENT_REGISTER (videoparse, plugin);
+ ret |= GST_ELEMENT_REGISTER (audioparse, plugin);
return ret;
}