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

index 8c136de..3e6c280 100644 (file)
@@ -353,12 +353,17 @@ gst_lame_get_type (void)
       NULL,
       NULL
     };
+    static const GInterfaceInfo preset_info = {
+      NULL,
+      NULL,
+      NULL
+    };
 
     gst_lame_type =
         g_type_register_static (GST_TYPE_ELEMENT, "GstLame", &gst_lame_info, 0);
     g_type_add_interface_static (gst_lame_type, GST_TYPE_TAG_SETTER,
         &tag_setter_info);
-
+    g_type_add_interface_static (gst_lame_type, GST_TYPE_PRESET, &preset_info);
   }
   return gst_lame_type;
 }
index 86e3abe..687f3e1 100644 (file)
@@ -203,10 +203,17 @@ gst_lamemp3enc_get_type (void)
       0,
       (GInstanceInitFunc) gst_lamemp3enc_init,
     };
+    static const GInterfaceInfo preset_info = {
+      NULL,
+      NULL,
+      NULL
+    };
 
     gst_lamemp3enc_type =
         g_type_register_static (GST_TYPE_ELEMENT, "GstLameMP3Enc",
         &gst_lamemp3enc_info, 0);
+    g_type_add_interface_static (gst_lamemp3enc_type, GST_TYPE_PRESET,
+        &preset_info);
   }
   return gst_lamemp3enc_type;
 }