lame: Implement preset interface

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

View file

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

View file

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