mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
ffenc: Implement preset interface
This commit is contained in:
parent
9133bb9ba2
commit
c2a9ee9264
1 changed files with 9 additions and 0 deletions
|
@ -1115,6 +1115,15 @@ gst_ffmpegenc_register (GstPlugin * plugin)
|
||||||
type = g_type_register_static (GST_TYPE_ELEMENT, type_name, &typeinfo, 0);
|
type = g_type_register_static (GST_TYPE_ELEMENT, type_name, &typeinfo, 0);
|
||||||
g_type_set_qdata (type, GST_FFENC_PARAMS_QDATA, (gpointer) params);
|
g_type_set_qdata (type, GST_FFENC_PARAMS_QDATA, (gpointer) params);
|
||||||
|
|
||||||
|
{
|
||||||
|
static const GInterfaceInfo preset_info = {
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
g_type_add_interface_static (type, GST_TYPE_PRESET, &preset_info);
|
||||||
|
}
|
||||||
|
|
||||||
if (!gst_element_register (plugin, type_name, GST_RANK_NONE, type)) {
|
if (!gst_element_register (plugin, type_name, GST_RANK_NONE, type)) {
|
||||||
g_free (type_name);
|
g_free (type_name);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue