- Add patch to set the PulseAudio application role

This commit is contained in:
Bastien Nocera 2009-02-17 22:34:23 +00:00
parent 9f24c96b00
commit 6d93af4c65
2 changed files with 18 additions and 1 deletions

View File

@ -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);

View File

@ -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 <bnocera@redhat.com> - 2.25.91-2
- Add patch to set the PulseAudio application role
* Tue Feb 17 2009 - Bastien Nocera <bnocera@redhat.com> - 2.25.91-1
- Update to 2.25.91