[spice-xpi/f16] fix updating connected status
Peter Hatina
phatina at fedoraproject.org
Wed Jun 6 14:39:38 UTC 2012
commit bf404f20239b3d7d2f277b7f68eb52d279aaf995
Author: Peter Hatina <phatina at redhat.com>
Date: Wed Jun 6 16:40:43 2012 +0200
fix updating connected status
spice-xpi-02-connected-status.patch | 12 ++++++++++++
spice-xpi.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/spice-xpi-02-connected-status.patch b/spice-xpi-02-connected-status.patch
new file mode 100644
index 0000000..3c99bd9
--- /dev/null
+++ b/spice-xpi-02-connected-status.patch
@@ -0,0 +1,12 @@
+diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
+index 816ac63..d3f7d30 100644
+--- a/SpiceXPI/src/plugin/plugin.cpp
++++ b/SpiceXPI/src/plugin/plugin.cpp
+@@ -752,6 +752,7 @@ void nsPluginInstance::SigchldRoutine(int sig, siginfo_t *info, void *uap)
+ waitpid(info->si_pid, &exit_code, 0);
+
+ nsPluginInstance *fake_this = s_children[info->si_pid];
++ fake_this->m_connected_status = fake_this->m_external_controller.TranslateRC(exit_code);
+ fake_this->CallOnDisconnected(exit_code);
+ fake_this->m_external_controller.Disconnect();
+ s_children.erase(info->si_pid);
diff --git a/spice-xpi.spec b/spice-xpi.spec
index a29eeb3..4283ae6 100644
--- a/spice-xpi.spec
+++ b/spice-xpi.spec
@@ -1,12 +1,13 @@
Name: spice-xpi
Version: 2.7
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: SPICE extension for Mozilla
Group: Applications/Internet
License: MPLv1.1 or GPLv2+ or LGPLv2+
URL: http://spice-space.org
Source0: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
Patch0: spice-xpi-01-build-cachedir.patch
+Patch1: spice-xpi-02-connected-status.patch
BuildRequires: log4cpp-devel
BuildRequires: xulrunner-devel >= 8.0
@@ -23,6 +24,7 @@ Spice extension for Mozilla allows the client to be used from a web browser.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
+%patch1 -p1
%build
@@ -43,6 +45,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
%exclude %{_libdir}/mozilla/plugins/*.la
%changelog
+* Wed Jun 06 2012 Peter Hatina <phatina at redhat.com> 2.7-3
+- Fix updating connected status
+
* Mon Feb 20 2012 Peter Hatina <phatina at redhat.com> 2.7-2
- Fixed build issue
More information about the scm-commits
mailing list