mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
lame: Implement preset interface
This commit is contained in:
parent
423a6b01aa
commit
a085d92489
2 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue