diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-04 12:34:59 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-05-04 12:34:59 +0200 |
commit | c53e4b8efcd5bcf8589b9d98af37cf7331b6dd05 (patch) | |
tree | cad9a20f46990ee2520dbd79a3d3adb2a8df9cce /ext/jp2k | |
parent | e9e52d0a9d9fdafc3ee499a9151f8ffbc22752af (diff) | |
download | gst-plugins-bad-c53e4b8efcd5bcf8589b9d98af37cf7331b6dd05.tar.gz gst-plugins-bad-c53e4b8efcd5bcf8589b9d98af37cf7331b6dd05.tar.bz2 gst-plugins-bad-c53e4b8efcd5bcf8589b9d98af37cf7331b6dd05.zip |
jp2kenc: Implement preset interface
Diffstat (limited to 'ext/jp2k')
-rw-r--r-- | ext/jp2k/gstjasperenc.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ext/jp2k/gstjasperenc.c b/ext/jp2k/gstjasperenc.c index 47818eb3..9e6e17c9 100644 --- a/ext/jp2k/gstjasperenc.c +++ b/ext/jp2k/gstjasperenc.c @@ -94,7 +94,21 @@ static GstFlowReturn gst_jasper_enc_chain (GstPad * pad, GstBuffer * buffer); typedef GstJasperEnc GstJp2kEnc; typedef GstJasperEncClass GstJp2kEncClass; -GST_BOILERPLATE (GstJp2kEnc, gst_jasper_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 (GstJp2kEnc, gst_jasper_enc, GstElement, GST_TYPE_ELEMENT, + _do_init); static void gst_jasper_enc_base_init (gpointer g_class) |