diff --git a/ext/twolame/gsttwolame.c b/ext/twolame/gsttwolame.c index face347bee..5b3fe7a8a4 100644 --- a/ext/twolame/gsttwolame.c +++ b/ext/twolame/gsttwolame.c @@ -201,8 +201,21 @@ static gboolean gst_two_lame_setup (GstTwoLame * twolame); static GstStateChangeReturn gst_two_lame_change_state (GstElement * element, GstStateChange transition); +static void +_do_init (GType object_type) +{ + const GInterfaceInfo preset_interface_info = { + NULL, /* interface_init */ + NULL, /* interface_finalize */ + NULL /* interface_data */ + }; -GST_BOILERPLATE (GstTwoLame, gst_two_lame, GstElement, GST_TYPE_ELEMENT); + g_type_add_interface_static (object_type, GST_TYPE_PRESET, + &preset_interface_info); +} + +GST_BOILERPLATE_FULL (GstTwoLame, gst_two_lame, GstElement, GST_TYPE_ELEMENT, + _do_init); static void gst_two_lame_release_memory (GstTwoLame * twolame)