[totem] backend: Use autoaudiosink directly



commit 3fc3078374f7e8485390704616792817dcacec7b
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Apr 3 21:44:52 2011 +0100

    backend: Use autoaudiosink directly
    
    Rather than going through gconfaudiosink, which doesn't
    bring us anything interesting with PulseAudio.

 src/backend/bacon-video-widget-gst-0.10.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 077ac2a..ac65c5c 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -6306,16 +6306,7 @@ bacon_video_widget_new (BvwUseType type, GError ** error)
   bvw->priv->auto_resize = FALSE;
 
   if (type == BVW_USE_TYPE_VIDEO) {
-    audio_sink = gst_element_factory_make ("gconfaudiosink", "audio-sink");
-    if (audio_sink == NULL) {
-      g_warning ("Could not create element 'gconfaudiosink'");
-      /* Try to fallback on autoaudiosink */
-      audio_sink = gst_element_factory_make ("autoaudiosink", "audio-sink");
-    } else {
-      /* set the profile property on the gconfaudiosink to "music and movies" */
-      if (g_object_class_find_property (G_OBJECT_GET_CLASS (audio_sink), "profile"))
-        g_object_set (G_OBJECT (audio_sink), "profile", 1, NULL);
-    }
+    audio_sink = gst_element_factory_make ("autoaudiosink", "audio-sink");
   } else {
     audio_sink = gst_element_factory_make ("fakesink", "audio-fake-sink");
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]