playbin2: Implement GstStreamVolume interface
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 11 Sep 2009 13:11:41 +0000 (15:11 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 11 Sep 2009 14:37:35 +0000 (16:37 +0200)
gst/playback/gstplaybin2.c

index e6843bdfd2d027158aab1a10c00656a021af7c57..8020393c2b1257bfc8c918871ef78c0011f5d941 100644 (file)
 
 #include <gst/gst-i18n-plugin.h>
 #include <gst/pbutils/pbutils.h>
+#include <gst/interfaces/streamvolume.h>
 
 #include "gstplay-enum.h"
 #include "gstplay-marshal.h"
@@ -581,9 +582,15 @@ gst_play_bin_get_type (void)
       (GInstanceInitFunc) gst_play_bin_init,
       NULL
     };
+    static const GInterfaceInfo svol_info = {
+      NULL, NULL, NULL
+    };
 
     gst_play_bin_type = g_type_register_static (GST_TYPE_PIPELINE,
         "GstPlayBin2", &gst_play_bin_info, 0);
+
+    g_type_add_interface_static (gst_play_bin_type, GST_TYPE_STREAM_VOLUME,
+        &svol_info);
   }
 
   return gst_play_bin_type;