flac: Implement preset interface
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 4 May 2009 10:43:42 +0000 (12:43 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 4 May 2009 10:43:42 +0000 (12:43 +0200)
ext/flac/gstflacenc.c

index 96c58e8..97b9f3d 100644 (file)
@@ -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,