[gst-cvs] gst-plugins-good: flac: Implement preset interface

Sebastian Dröge slomo at kemper.freedesktop.org
Mon May 4 03:43:53 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: 9da04cd6af2ee8c6d162aceb020517fd30a310a1
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=9da04cd6af2ee8c6d162aceb020517fd30a310a1

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon May  4 12:43:42 2009 +0200

flac: Implement preset interface

---

 ext/flac/gstflacenc.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c
index 96c58e8..97b9f3d 100644
--- a/ext/flac/gstflacenc.c
+++ b/ext/flac/gstflacenc.c
@@ -155,8 +155,15 @@ GST_DEBUG_CATEGORY_STATIC (flacenc_debug);
       NULL,                                                                     \
       NULL                                                                      \
     };                                                                          \
+    static const GInterfaceInfo preset_info = {                                 \
+      NULL,                                                                     \
+      NULL,                                                                     \
+      NULL                                                                      \
+    };                                                                          \
     g_type_add_interface_static (type, GST_TYPE_TAG_SETTER,                     \
                                  &tag_setter_info);                             \
+    g_type_add_interface_static (type, GST_TYPE_PRESET,                         \
+                                 &preset_info);                                 \
   }G_STMT_END
 
 GST_BOILERPLATE_FULL (GstFlacEnc, gst_flac_enc, GstElement, GST_TYPE_ELEMENT,





More information about the Gstreamer-commits mailing list