ffenc: Implement preset interface
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 4 May 2009 11:00:49 +0000 (13:00 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 4 May 2009 11:00:49 +0000 (13:00 +0200)
ext/ffmpeg/gstffmpegenc.c

index fac321d..b46d806 100644 (file)
@@ -1115,6 +1115,15 @@ gst_ffmpegenc_register (GstPlugin * plugin)
     type = g_type_register_static (GST_TYPE_ELEMENT, type_name, &typeinfo, 0);
     g_type_set_qdata (type, GST_FFENC_PARAMS_QDATA, (gpointer) params);
 
+    {
+      static const GInterfaceInfo preset_info = {
+        NULL,
+        NULL,
+        NULL
+      };
+      g_type_add_interface_static (type, GST_TYPE_PRESET, &preset_info);
+    }
+
     if (!gst_element_register (plugin, type_name, GST_RANK_NONE, type)) {
       g_free (type_name);
       return FALSE;