Skip to content

Commit

Permalink
volume: 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 b490579 commit 4f6af9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gst/volume/gstvolume.c
Expand Up @@ -113,6 +113,7 @@ enum
G_DEFINE_TYPE_WITH_CODE (GstVolume, gst_volume,
GST_TYPE_AUDIO_FILTER,
G_IMPLEMENT_INTERFACE (GST_TYPE_STREAM_VOLUME, NULL));
GST_ELEMENT_REGISTER_DEFINE (volume, "volume", GST_RANK_NONE, GST_TYPE_VOLUME);

static void volume_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
Expand Down Expand Up @@ -865,8 +866,7 @@ plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "volume", 0, "Volume gain");

return gst_element_register (plugin, "volume", GST_RANK_NONE,
GST_TYPE_VOLUME);
return GST_ELEMENT_REGISTER (volume, plugin);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Expand Down
2 changes: 2 additions & 0 deletions gst/volume/gstvolume.h
Expand Up @@ -66,6 +66,8 @@ struct _GstVolume {
guint volumes_count;
};

GST_ELEMENT_REGISTER_DECLARE (volume);

G_END_DECLS

#endif /* __GST_VOLUME_H__ */

0 comments on commit 4f6af9e

Please sign in to comment.