summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2007-04-11 16:46:07 +0000
committerBastien Nocera <hadess@src.gnome.org>2007-04-11 16:46:07 +0000
commit7f0af00d11022d8faf3080ec6f9ba3560aa45fcd (patch)
treefec841f117cc2903280690b2afa2b5c6f02ac61a
parent269047f8a584c87769c77727fb2dffa649101f75 (diff)
downloadtotem-7f0af00d11022d8faf3080ec6f9ba3560aa45fcd.tar.gz
Follow the profiles set in the control-center if available (Closes:
2007-04-11 Bastien Nocera <hadess@hadess.net> * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_new): Follow the profiles set in the control-center if available (Closes: #428675) svn path=/branches/gnome-2-16/; revision=4213
-rw-r--r--ChangeLog6
-rw-r--r--src/backend/bacon-video-widget-gst-0.10.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c33d815d..11a5f135a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-11 Bastien Nocera <hadess@hadess.net>
+
+ * src/backend/bacon-video-widget-gst-0.10.c:
+ (bacon_video_widget_new): Follow the profiles set in the
+ control-center if available (Closes: #428675)
+
============ Version 2.16.6
2007-03-19 Bastien Nocera <hadess@hadess.net>
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index d1991272b..3083af4b7 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -4324,6 +4324,10 @@ bacon_video_widget_new (int width, int height,
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);
}
} else {
audio_sink = gst_element_factory_make ("fakesink", "audio-fake-sink");