lame: Implement preset interface

This commit is contained in:
Sebastian Dröge 2009-05-04 12:48:43 +02:00
parent 423a6b01aa
commit a085d92489
2 changed files with 13 additions and 1 deletions

View file

@ -353,12 +353,17 @@ gst_lame_get_type (void)
NULL,
NULL
};
static const GInterfaceInfo preset_info = {
NULL,
NULL,
NULL
};
gst_lame_type =
g_type_register_static (GST_TYPE_ELEMENT, "GstLame", &gst_lame_info, 0);
g_type_add_interface_static (gst_lame_type, GST_TYPE_TAG_SETTER,
&tag_setter_info);
g_type_add_interface_static (gst_lame_type, GST_TYPE_PRESET, &preset_info);
}
return gst_lame_type;
}

View file

@ -203,10 +203,17 @@ gst_lamemp3enc_get_type (void)
0,
(GInstanceInitFunc) gst_lamemp3enc_init,
};
static const GInterfaceInfo preset_info = {
NULL,
NULL,
NULL
};
gst_lamemp3enc_type =
g_type_register_static (GST_TYPE_ELEMENT, "GstLameMP3Enc",
&gst_lamemp3enc_info, 0);
g_type_add_interface_static (gst_lamemp3enc_type, GST_TYPE_PRESET,
&preset_info);
}
return gst_lamemp3enc_type;
}