diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-04-30 00:06:36 +0300 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-05-03 12:03:19 -0400 |
commit | 3ad6e285751aff21a2aae2ef5d33e0ec6c9eb46f (patch) | |
tree | fce5a5ab76ab343dace0665c8e886e12cdb9a892 /ext/x264/gstx264enc.c | |
parent | d71386a0337c1c1aba1a88ba5108f28d54f62768 (diff) | |
download | gst-plugins-bad-3ad6e285751aff21a2aae2ef5d33e0ec6c9eb46f.tar.gz gst-plugins-bad-3ad6e285751aff21a2aae2ef5d33e0ec6c9eb46f.tar.bz2 gst-plugins-bad-3ad6e285751aff21a2aae2ef5d33e0ec6c9eb46f.zip |
x264enc: add preset support
Add preset iface and a (dummy) preset file as a starting point.
Diffstat (limited to 'ext/x264/gstx264enc.c')
-rw-r--r-- | ext/x264/gstx264enc.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 207ceb6e..37f53cce 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -238,7 +238,21 @@ static void gst_x264_enc_set_property (GObject * object, guint prop_id, static void gst_x264_enc_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -GST_BOILERPLATE (GstX264Enc, gst_x264_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 (GstX264Enc, gst_x264_enc, GstElement, GST_TYPE_ELEMENT, + _do_init); static void gst_x264_enc_base_init (gpointer g_class) |