aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-03-09 04:18:15 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-09 04:18:15 +0800
commit6c2118ffc618f12bef2ceecc2d2cae26cd76678a (patch)
treecf91c994c13945bd48eef1d61c2624333cecd9d2
parent1c853020393687ab8f9ea2cfff5dda7c2afcbfb8 (diff)
downloadgsoc2013-empathy-6c2118ffc618f12bef2ceecc2d2cae26cd76678a.tar
gsoc2013-empathy-6c2118ffc618f12bef2ceecc2d2cae26cd76678a.tar.gz
gsoc2013-empathy-6c2118ffc618f12bef2ceecc2d2cae26cd76678a.tar.bz2
gsoc2013-empathy-6c2118ffc618f12bef2ceecc2d2cae26cd76678a.tar.lz
gsoc2013-empathy-6c2118ffc618f12bef2ceecc2d2cae26cd76678a.tar.xz
gsoc2013-empathy-6c2118ffc618f12bef2ceecc2d2cae26cd76678a.tar.zst
gsoc2013-empathy-6c2118ffc618f12bef2ceecc2d2cae26cd76678a.zip
Set empathy's media role to phone for so pulse can do policy on it
Empathy's media role should be phone. Apart from voip calls the only sounds we make are event sounds via libcanberra, which correctly sets the role to event when playing a sound. For more information see: http://pulseaudio.org/wiki/ApplicationProperties From: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2634
-rw-r--r--src/empathy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c
index 3d19bce5a..a2115a6cf 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -455,6 +455,7 @@ main (int argc, char *argv[])
empathy_gtk_init ();
g_set_application_name (_(PACKAGE_NAME));
+ g_setenv("PULSE_PROP_media.role", "phone", TRUE);
gst_init (&argc, &argv);