diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-04 12:33:41 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-04 12:33:41 +0200 |
commit | e9e52d0a9d9fdafc3ee499a9151f8ffbc22752af (patch) | |
tree | 183abbaa87912c582c176e62f13ffd3fd119bbba /ext/mpeg2enc | |
parent | 296caf466014e11e73a67e8ec27d32f6e78b0a9c (diff) | |
download | gst-plugins-bad-e9e52d0a9d9fdafc3ee499a9151f8ffbc22752af.tar.gz gst-plugins-bad-e9e52d0a9d9fdafc3ee499a9151f8ffbc22752af.tar.bz2 gst-plugins-bad-e9e52d0a9d9fdafc3ee499a9151f8ffbc22752af.zip |
mpeg2enc: Implement Preset interface
Diffstat (limited to 'ext/mpeg2enc')
-rw-r--r-- | ext/mpeg2enc/gstmpeg2enc.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc index e96e8124..21be81fb 100644 --- a/ext/mpeg2enc/gstmpeg2enc.cc +++ b/ext/mpeg2enc/gstmpeg2enc.cc @@ -99,7 +99,21 @@ static void gst_mpeg2enc_get_property (GObject * object, static void gst_mpeg2enc_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); -GST_BOILERPLATE (GstMpeg2enc, gst_mpeg2enc, 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 (GstMpeg2enc, gst_mpeg2enc, GstElement, GST_TYPE_ELEMENT, + _do_init); static void gst_mpeg2enc_base_init (gpointer klass) |