diff --git a/totem-set-pulse-role.patch b/totem-set-pulse-role.patch new file mode 100644 index 0000000..8b4e0a3 --- /dev/null +++ b/totem-set-pulse-role.patch @@ -0,0 +1,12 @@ +Index: src/totem.c +=================================================================== +--- src/totem.c (revision 5992) ++++ src/totem.c (working copy) +@@ -160,6 +160,7 @@ + + g_set_application_name (_("Totem Movie Player")); + gtk_window_set_default_icon_name ("totem"); ++ g_setenv("PULSE_PROP_media.role", "video", TRUE); + gtk_about_dialog_set_url_hook (about_url_hook, NULL, NULL); + gtk_about_dialog_set_email_hook (about_email_hook, NULL, NULL); + diff --git a/totem.spec b/totem.spec index f711987..9f9d8d4 100644 --- a/totem.spec +++ b/totem.spec @@ -9,7 +9,7 @@ Summary: Movie player for GNOME Name: totem Version: 2.25.91 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ with exceptions Group: Applications/Multimedia URL: http://projects.gnome.org/totem/ @@ -17,6 +17,7 @@ Source0: http://download.gnome.org/sources/totem/2.24/totem-%{version}.tar.bz2 Source1: totem-bin-backend-ondemand.sh # Will be removed when we switch to playbin2 Patch0: totem-use-pulsesink-volume.patch +Patch1: totem-set-pulse-role.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(pre): GConf2 >= 2.14 @@ -217,6 +218,7 @@ audio and video files in the properties dialog. %setup -q -c pushd totem-%{version}/ %patch0 -p0 -b .pulsesink-vol +%patch1 -p0 popd # Whatever needs to be changed in both copies do here ## remember to update me when changing %doc @@ -494,6 +496,9 @@ fi %endif %changelog +* Tue Feb 17 2009 - Bastien Nocera - 2.25.91-2 +- Add patch to set the PulseAudio application role + * Tue Feb 17 2009 - Bastien Nocera - 2.25.91-1 - Update to 2.25.91