[X2Go-Commits] [x2goclient] 163/257: src/onmainwindow.cpp: port to new debugging feature of PulseManager.
git-admin at x2go.org
git-admin at x2go.org
Mon Nov 28 16:05:53 CET 2016
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/osx
in repository x2goclient.
commit 275922ed1062189f45fbd3d5eb5c005d94b481ec
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sat May 7 03:10:34 2016 +0200
src/onmainwindow.cpp: port to new debugging feature of PulseManager.
---
debian/changelog | 1 +
src/onmainwindow.cpp | 9 ++++++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 6271c06..08bd28b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -276,6 +276,7 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
we'll get compile failures on non-Windows platforms.
- src/pulsemanager.{cpp,h}: add debugging setter and private variable.
- src/pulsemanager.{cpp,h}: port to new debugging feature.
+ - src/onmainwindow.cpp: port to new debugging feature of PulseManager.
[ Bernard Cafarelli ]
* New upstream version (4.0.5.3):
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 64c3831..7b6a768 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -2129,7 +2129,12 @@ void ONMainWindow::slotConfig()
(QVariant) false).toBool ();
if (oldDisableInput != newDisableInput) {
- pulseManager->set_record (!newDisableInput);
+ bool ret = pulseManager->set_record (!newDisableInput);
+
+ if (!ret) {
+ x2goDebug << "Failed to change recording status of PulseManager. PulseAudio not started?" << endl;
+ }
+
pulseManager->restart ();
}
#endif /* defined (Q_OS_WIN) || defined (Q_OS_DARWIN) */
@@ -6497,6 +6502,8 @@ void ONMainWindow::pulseManagerWrapper () {
pulseManagerThread = new QThread (0);
pulseManager = new PulseManager ();
+ pulseManager->set_debug (debugging);
+
pulseManager->moveToThread (pulseManagerThread);
/*
--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list