diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-04 12:36:17 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-04 12:36:17 +0200 |
commit | f3105eccd26d69ae022d1a9fc8c510339f8337f4 (patch) | |
tree | e6034a0b76ad3a6684366a8ca081fc0397e41b63 /ext/dirac | |
parent | c53e4b8efcd5bcf8589b9d98af37cf7331b6dd05 (diff) | |
download | gst-plugins-bad-f3105eccd26d69ae022d1a9fc8c510339f8337f4.tar.gz gst-plugins-bad-f3105eccd26d69ae022d1a9fc8c510339f8337f4.tar.bz2 gst-plugins-bad-f3105eccd26d69ae022d1a9fc8c510339f8337f4.zip |
dirac: Implement preset interface
Diffstat (limited to 'ext/dirac')
-rw-r--r-- | ext/dirac/gstdiracenc.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ext/dirac/gstdiracenc.cc b/ext/dirac/gstdiracenc.cc index f3be8202..11372f89 100644 --- a/ext/dirac/gstdiracenc.cc +++ b/ext/dirac/gstdiracenc.cc @@ -148,7 +148,21 @@ GST_STATIC_PAD_TEMPLATE ("src", GST_STATIC_CAPS ("video/x-dirac") ); -GST_BOILERPLATE (GstDiracEnc, gst_dirac_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 (GstDiracEnc, gst_dirac_enc, GstElement, GST_TYPE_ELEMENT, + _do_init); static void gst_dirac_enc_base_init (gpointer g_class) |