mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
theoraenc: Implement Preset interface
This commit is contained in:
parent
2ea16837e7
commit
bcd0aee3f5
1 changed files with 15 additions and 1 deletions
|
@ -181,7 +181,21 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("video/x-theora")
|
||||
);
|
||||
|
||||
GST_BOILERPLATE (GstTheoraEnc, gst_theora_enc, GstElement, GST_TYPE_ELEMENT);
|
||||
static void
|
||||
_do_init (GType object_type)
|
||||
{
|
||||
const GInterfaceInfo preset_interface_info = {
|
||||
NULL, /* interface_init */
|
||||
NULL, /* interface_finalize */
|
||||
NULL /* interface_data */
|
||||
};
|
||||
|
||||
g_type_add_interface_static (object_type, GST_TYPE_PRESET,
|
||||
&preset_interface_info);
|
||||
}
|
||||
|
||||
GST_BOILERPLATE_FULL (GstTheoraEnc, gst_theora_enc, GstElement,
|
||||
GST_TYPE_ELEMENT, _do_init);
|
||||
|
||||
static gboolean theora_enc_sink_event (GstPad * pad, GstEvent * event);
|
||||
static gboolean theora_enc_src_event (GstPad * pad, GstEvent * event);
|
||||
|
|
Loading…
Reference in a new issue