]> git.0d.be Git - empathy.git/blobdiff - src/empathy-audio-sink.c
Be more compatible with Facebook emoticon codes
[empathy.git] / src / empathy-audio-sink.c
index ba5cab77d32cdc03520bebcf2766b6c64fad0986..f3a78bf3fc1ac16906bc80063574fc5c7fc0aaf6 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <config.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <gst/audio/audio.h>
-#include <gst/interfaces/streamvolume.h>
+#include "config.h"
+#include "empathy-audio-sink.h"
 
-#include <telepathy-glib/telepathy-glib.h>
+#include <gst/audio/streamvolume.h>
 
 #include "empathy-audio-utils.h"
 
-#include "empathy-audio-sink.h"
-
 #define DEBUG_FLAG EMPATHY_DEBUG_VOIP
-#include <libempathy/empathy-debug.h>
+#include "empathy-debug.h"
 
 G_DEFINE_TYPE(EmpathyGstAudioSink, empathy_audio_sink, GST_TYPE_BIN)
 
@@ -51,8 +44,7 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE(
     "sink%d",
     GST_PAD_SINK,
     GST_PAD_REQUEST,
-    GST_STATIC_CAPS ( GST_AUDIO_INT_PAD_TEMPLATE_CAPS " ; "
-        GST_AUDIO_FLOAT_PAD_TEMPLATE_CAPS)
+    GST_STATIC_CAPS ( "audio/x-raw" )
 );
 
 enum {
@@ -82,7 +74,8 @@ empathy_audio_sink_init (EmpathyGstAudioSink *self)
 
 static GstPad * empathy_audio_sink_request_new_pad (GstElement *self,
   GstPadTemplate *templ,
-  const gchar* name);
+  const gchar* name,
+  const GstCaps *caps);
 
 static void empathy_audio_sink_release_pad (GstElement *self,
   GstPad *pad);
@@ -296,7 +289,8 @@ empathy_audio_sink_volume_idle_setup (gpointer user_data)
 static GstPad *
 empathy_audio_sink_request_new_pad (GstElement *element,
   GstPadTemplate *templ,
-  const gchar* name)
+  const gchar* name,
+  const GstCaps *caps)
 {
   EmpathyGstAudioSink *self = EMPATHY_GST_AUDIO_SINK (element);
   GstElement *bin, *resample, *audioconvert0, *audioconvert1;