mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +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_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_sink_event (GstPad * pad, GstEvent * event);
|
||||||
static gboolean theora_enc_src_event (GstPad * pad, GstEvent * event);
|
static gboolean theora_enc_src_event (GstPad * pad, GstEvent * event);
|
||||||
|
|
Loading…
Reference in a new issue