Hello community,
here is the log from the commit of package plasma5-pa for openSUSE:Factory checked in at 2017-02-10 09:59:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plasma5-pa (Old)
and /work/SRC/openSUSE:Factory/.plasma5-pa.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plasma5-pa"
Changes:
--------
--- /work/SRC/openSUSE:Factory/plasma5-pa/plasma5-pa.changes 2017-02-03 18:56:09.224018345 +0100
+++ /work/SRC/openSUSE:Factory/.plasma5-pa.new/plasma5-pa.changes 2017-02-10 09:59:58.224979141 +0100
@@ -1,0 +2,10 @@
+Tue Feb 7 18:54:41 CET 2017 - fabian@ritter-vogt.de
+
+- Update to 5.9.1
+ * New feature release
+ * For more details please see:
+ * https://www.kde.org/announcements/plasma-5.9.1.php
+- Changes since 5.9.0:
+ * Always check if context is valid when calling pa functions
+
+-------------------------------------------------------------------
Old:
----
plasma-pa-5.9.0.tar.xz
New:
----
plasma-pa-5.9.1.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ plasma5-pa.spec ++++++
--- /var/tmp/diff_new_pack.qujWSI/_old 2017-02-10 09:59:58.652918626 +0100
+++ /var/tmp/diff_new_pack.qujWSI/_new 2017-02-10 09:59:58.656918060 +0100
@@ -18,13 +18,13 @@
%bcond_without lang
Name: plasma5-pa
-Version: 5.9.0
+Version: 5.9.1
Release: 0
Summary: The new Plasma5 Volume Manager
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://www.kde.org
-Source: plasma-pa-%{version}.tar.xz
+Source: http://download.kde.org/stable/plasma/%{version}/plasma-pa-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= 0.0.14
BuildRequires: kf5-filesystem
BuildRequires: libcanberra-devel
++++++ plasma-pa-5.9.0.tar.xz -> plasma-pa-5.9.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/CMakeLists.txt new/plasma-pa-5.9.1/CMakeLists.txt
--- old/plasma-pa-5.9.0/CMakeLists.txt 2017-01-26 13:27:06.000000000 +0100
+++ new/plasma-pa-5.9.1/CMakeLists.txt 2017-02-07 12:27:14.000000000 +0100
@@ -1,7 +1,7 @@
project(plasma-volume-control)
cmake_minimum_required(VERSION 2.8.12)
-set(PROJECT_VERSION "5.9.0")
+set(PROJECT_VERSION "5.9.1")
set(PROJECT_VERSION_MAJOR 5)
set (QT_MIN_VERSION "5.4.0")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/gl/kcm_pulseaudio.po new/plasma-pa-5.9.1/po/gl/kcm_pulseaudio.po
--- old/plasma-pa-5.9.0/po/gl/kcm_pulseaudio.po 2017-01-26 13:26:29.000000000 +0100
+++ new/plasma-pa-5.9.1/po/gl/kcm_pulseaudio.po 2017-02-07 12:27:00.000000000 +0100
@@ -84,13 +84,13 @@
#, kde-format
msgctxt "@title:tab"
msgid "Applications"
-msgstr "Programas"
+msgstr "Aplicativos"
#: kcm/package/contents/ui/main.qml:45
#, kde-format
msgctxt "@label"
msgid "No Applications Playing Audio"
-msgstr "Ningún programa emitindo son"
+msgstr "Ningún aplicativo emitindo son"
#: kcm/package/contents/ui/main.qml:49
#, kde-format
@@ -102,7 +102,7 @@
#, kde-format
msgctxt "@label"
msgid "No Applications Recording Audio"
-msgstr "Ningún programa gravando son"
+msgstr "Ningún aplicativo gravando son"
#: kcm/package/contents/ui/main.qml:59
#, kde-format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/gl/plasma_applet_org.kde.plasma.volume.po new/plasma-pa-5.9.1/po/gl/plasma_applet_org.kde.plasma.volume.po
--- old/plasma-pa-5.9.0/po/gl/plasma_applet_org.kde.plasma.volume.po 2017-01-26 13:26:29.000000000 +0100
+++ new/plasma-pa-5.9.1/po/gl/plasma_applet_org.kde.plasma.volume.po 2017-02-07 12:27:00.000000000 +0100
@@ -124,7 +124,7 @@
#: contents/ui/main.qml:278
#, kde-format
msgid "Applications"
-msgstr "Programas"
+msgstr "Aplicativos"
#: contents/ui/main.qml:310
#, kde-format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/nn/kcm_pulseaudio.po new/plasma-pa-5.9.1/po/nn/kcm_pulseaudio.po
--- old/plasma-pa-5.9.0/po/nn/kcm_pulseaudio.po 2017-01-26 13:26:41.000000000 +0100
+++ new/plasma-pa-5.9.1/po/nn/kcm_pulseaudio.po 2017-02-07 12:27:04.000000000 +0100
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2016-11-19 20:21+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-10-13 21:16+0100\n"
"Last-Translator: Karl Ove Hufthammer \n"
"Language-Team: Norwegian Nynorsk \n"
@@ -158,18 +158,18 @@
msgid "%1: %2"
msgstr "%1: %2"
-#: kcm/package/contents/ui/VolumeSlider.qml:82
+#: kcm/package/contents/ui/VolumeSlider.qml:87
#, kde-format
msgid "100%"
msgstr "100 %"
-#: kcm/package/contents/ui/VolumeSlider.qml:98
+#: kcm/package/contents/ui/VolumeSlider.qml:103
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1 %"
-#: kcm/package/contents/ui/VolumeSlider.qml:104
+#: kcm/package/contents/ui/VolumeSlider.qml:109
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/nn/plasma_applet_org.kde.plasma.volume.po new/plasma-pa-5.9.1/po/nn/plasma_applet_org.kde.plasma.volume.po
--- old/plasma-pa-5.9.0/po/nn/plasma_applet_org.kde.plasma.volume.po 2017-01-26 13:26:41.000000000 +0100
+++ new/plasma-pa-5.9.1/po/nn/plasma_applet_org.kde.plasma.volume.po 2017-02-07 12:27:04.000000000 +0100
@@ -1,12 +1,12 @@
# Translation of plasma_applet_org.kde.plasma.volume to Norwegian Nynorsk
#
-# Karl Ove Hufthammer , 2015, 2016.
+# Karl Ove Hufthammer , 2015, 2016, 2017.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2017-01-02 03:53+0100\n"
-"PO-Revision-Date: 2016-10-13 21:16+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
+"PO-Revision-Date: 2017-02-05 10:23+0100\n"
"Last-Translator: Karl Ove Hufthammer \n"
"Language-Team: Norwegian Nynorsk \n"
"Language: nn\n"
@@ -58,15 +58,15 @@
#, kde-format
msgctxt "label of device items"
msgid "%1 (%2)"
-msgstr ""
+msgstr "%1 (%2)"
-#: contents/ui/ListItemBase.qml:209
+#: contents/ui/ListItemBase.qml:214
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1 %"
-#: contents/ui/ListItemBase.qml:215
+#: contents/ui/ListItemBase.qml:220
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr/kcm_pulseaudio.po new/plasma-pa-5.9.1/po/sr/kcm_pulseaudio.po
--- old/plasma-pa-5.9.0/po/sr/kcm_pulseaudio.po 2017-01-26 13:26:48.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr/kcm_pulseaudio.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: kcm_pulseaudio\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2016-11-19 20:21+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-11-23 19:26+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -158,18 +158,18 @@
msgid "%1: %2"
msgstr "%1: %2"
-#: kcm/package/contents/ui/VolumeSlider.qml:82
+#: kcm/package/contents/ui/VolumeSlider.qml:87
#, kde-format
msgid "100%"
msgstr "100%"
-#: kcm/package/contents/ui/VolumeSlider.qml:98
+#: kcm/package/contents/ui/VolumeSlider.qml:103
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: kcm/package/contents/ui/VolumeSlider.qml:104
+#: kcm/package/contents/ui/VolumeSlider.qml:109
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr/plasma_applet_org.kde.plasma.volume.po new/plasma-pa-5.9.1/po/sr/plasma_applet_org.kde.plasma.volume.po
--- old/plasma-pa-5.9.0/po/sr/plasma_applet_org.kde.plasma.volume.po 2017-01-26 13:26:48.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr/plasma_applet_org.kde.plasma.volume.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: plasma_applet_org.kde.plasma.volume\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2017-01-02 03:53+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-12-18 21:56+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -59,13 +59,13 @@
msgid "%1 (%2)"
msgstr "%1 (%2)"
-#: contents/ui/ListItemBase.qml:209
+#: contents/ui/ListItemBase.qml:214
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: contents/ui/ListItemBase.qml:215
+#: contents/ui/ListItemBase.qml:220
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr@ijekavian/kcm_pulseaudio.po new/plasma-pa-5.9.1/po/sr@ijekavian/kcm_pulseaudio.po
--- old/plasma-pa-5.9.0/po/sr@ijekavian/kcm_pulseaudio.po 2017-01-26 13:26:49.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr@ijekavian/kcm_pulseaudio.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: kcm_pulseaudio\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2016-11-19 20:21+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-11-23 19:26+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -158,18 +158,18 @@
msgid "%1: %2"
msgstr "%1: %2"
-#: kcm/package/contents/ui/VolumeSlider.qml:82
+#: kcm/package/contents/ui/VolumeSlider.qml:87
#, kde-format
msgid "100%"
msgstr "100%"
-#: kcm/package/contents/ui/VolumeSlider.qml:98
+#: kcm/package/contents/ui/VolumeSlider.qml:103
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: kcm/package/contents/ui/VolumeSlider.qml:104
+#: kcm/package/contents/ui/VolumeSlider.qml:109
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr@ijekavian/plasma_applet_org.kde.plasma.volume.po new/plasma-pa-5.9.1/po/sr@ijekavian/plasma_applet_org.kde.plasma.volume.po
--- old/plasma-pa-5.9.0/po/sr@ijekavian/plasma_applet_org.kde.plasma.volume.po 2017-01-26 13:26:49.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr@ijekavian/plasma_applet_org.kde.plasma.volume.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: plasma_applet_org.kde.plasma.volume\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2017-01-02 03:53+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-12-18 21:56+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -59,13 +59,13 @@
msgid "%1 (%2)"
msgstr "%1 (%2)"
-#: contents/ui/ListItemBase.qml:209
+#: contents/ui/ListItemBase.qml:214
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: contents/ui/ListItemBase.qml:215
+#: contents/ui/ListItemBase.qml:220
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr@ijekavianlatin/kcm_pulseaudio.po new/plasma-pa-5.9.1/po/sr@ijekavianlatin/kcm_pulseaudio.po
--- old/plasma-pa-5.9.0/po/sr@ijekavianlatin/kcm_pulseaudio.po 2017-01-26 13:26:50.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr@ijekavianlatin/kcm_pulseaudio.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: kcm_pulseaudio\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2016-11-19 20:21+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-11-23 19:26+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -158,18 +158,18 @@
msgid "%1: %2"
msgstr "%1: %2"
-#: kcm/package/contents/ui/VolumeSlider.qml:82
+#: kcm/package/contents/ui/VolumeSlider.qml:87
#, kde-format
msgid "100%"
msgstr "100%"
-#: kcm/package/contents/ui/VolumeSlider.qml:98
+#: kcm/package/contents/ui/VolumeSlider.qml:103
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: kcm/package/contents/ui/VolumeSlider.qml:104
+#: kcm/package/contents/ui/VolumeSlider.qml:109
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr@ijekavianlatin/plasma_applet_org.kde.plasma.volume.po new/plasma-pa-5.9.1/po/sr@ijekavianlatin/plasma_applet_org.kde.plasma.volume.po
--- old/plasma-pa-5.9.0/po/sr@ijekavianlatin/plasma_applet_org.kde.plasma.volume.po 2017-01-26 13:26:50.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr@ijekavianlatin/plasma_applet_org.kde.plasma.volume.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: plasma_applet_org.kde.plasma.volume\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2017-01-02 03:53+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-12-18 21:56+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -59,13 +59,13 @@
msgid "%1 (%2)"
msgstr "%1 (%2)"
-#: contents/ui/ListItemBase.qml:209
+#: contents/ui/ListItemBase.qml:214
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: contents/ui/ListItemBase.qml:215
+#: contents/ui/ListItemBase.qml:220
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr@latin/kcm_pulseaudio.po new/plasma-pa-5.9.1/po/sr@latin/kcm_pulseaudio.po
--- old/plasma-pa-5.9.0/po/sr@latin/kcm_pulseaudio.po 2017-01-26 13:26:49.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr@latin/kcm_pulseaudio.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: kcm_pulseaudio\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2016-11-19 20:21+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-11-23 19:26+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -158,18 +158,18 @@
msgid "%1: %2"
msgstr "%1: %2"
-#: kcm/package/contents/ui/VolumeSlider.qml:82
+#: kcm/package/contents/ui/VolumeSlider.qml:87
#, kde-format
msgid "100%"
msgstr "100%"
-#: kcm/package/contents/ui/VolumeSlider.qml:98
+#: kcm/package/contents/ui/VolumeSlider.qml:103
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: kcm/package/contents/ui/VolumeSlider.qml:104
+#: kcm/package/contents/ui/VolumeSlider.qml:109
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/po/sr@latin/plasma_applet_org.kde.plasma.volume.po new/plasma-pa-5.9.1/po/sr@latin/plasma_applet_org.kde.plasma.volume.po
--- old/plasma-pa-5.9.0/po/sr@latin/plasma_applet_org.kde.plasma.volume.po 2017-01-26 13:26:49.000000000 +0100
+++ new/plasma-pa-5.9.1/po/sr@latin/plasma_applet_org.kde.plasma.volume.po 2017-02-07 12:27:07.000000000 +0100
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: plasma_applet_org.kde.plasma.volume\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2017-01-02 03:53+0100\n"
+"POT-Creation-Date: 2017-01-26 06:51+0100\n"
"PO-Revision-Date: 2016-12-18 21:56+0100\n"
"Last-Translator: Chusslove Illich \n"
"Language-Team: Serbian \n"
@@ -59,13 +59,13 @@
msgid "%1 (%2)"
msgstr "%1 (%2)"
-#: contents/ui/ListItemBase.qml:209
+#: contents/ui/ListItemBase.qml:214
#, kde-format
msgctxt "volume percentage"
msgid "%1%"
msgstr "%1%"
-#: contents/ui/ListItemBase.qml:215
+#: contents/ui/ListItemBase.qml:220
#, kde-format
msgctxt "only used for sizing, should be widest possible string"
msgid "100%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/src/context.cpp new/plasma-pa-5.9.1/src/context.cpp
--- old/plasma-pa-5.9.0/src/context.cpp 2017-01-26 13:26:14.000000000 +0100
+++ new/plasma-pa-5.9.1/src/context.cpp 2017-02-07 12:26:54.000000000 +0100
@@ -431,6 +431,9 @@
void Context::setCardProfile(quint32 index, const QString &profile)
{
+ if (!m_context) {
+ return;
+ }
qCDebug(PLASMAPA) << index << profile;
if (!PAOperation(pa_context_set_card_profile_by_index(m_context,
index,
@@ -443,6 +446,9 @@
void Context::setDefaultSink(const QString &name)
{
+ if (!m_context) {
+ return;
+ }
const QByteArray nameData = name.toUtf8();
if (!PAOperation(pa_context_set_default_sink(m_context,
nameData.constData(),
@@ -454,6 +460,9 @@
void Context::setDefaultSource(const QString &name)
{
+ if (!m_context) {
+ return;
+ }
const QByteArray nameData = name.toUtf8();
if (!PAOperation(pa_context_set_default_source(m_context,
nameData.constData(),
@@ -465,6 +474,9 @@
void Context::streamRestoreWrite(const pa_ext_stream_restore_info *info)
{
+ if (!m_context) {
+ return;
+ }
if (!PAOperation(pa_ext_stream_restore_write(m_context,
PA_UPDATE_REPLACE,
info,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/plasma-pa-5.9.0/src/context.h new/plasma-pa-5.9.1/src/context.h
--- old/plasma-pa-5.9.0/src/context.h 2017-01-26 13:26:14.000000000 +0100
+++ new/plasma-pa-5.9.1/src/context.h 2017-02-07 12:26:54.000000000 +0100
@@ -86,6 +86,9 @@
void setGenericVolume(quint32 index, int channel, qint64 newVolume,
pa_cvolume cVolume, PAFunction pa_set_volume)
{
+ if (!m_context) {
+ return;
+ }
newVolume = qBound<qint64>(0, newVolume, PA_VOLUME_MAX);
pa_cvolume newCVolume = cVolume;
if (channel == -1) { // -1 all channels
@@ -105,6 +108,9 @@
template <typename PAFunction>
void setGenericMute(quint32 index, bool mute, PAFunction pa_set_mute)
{
+ if (!m_context) {
+ return;
+ }
if (!PAOperation(pa_set_mute(m_context, index, mute, nullptr, nullptr))) {
qCWarning(PLASMAPA) << "pa_set_mute failed";
return;
@@ -114,6 +120,9 @@
template <typename PAFunction>
void setGenericPort(quint32 index, const QString &portName, PAFunction pa_set_port)
{
+ if (!m_context) {
+ return;
+ }
if (!PAOperation(pa_set_port(m_context,
index,
portName.toUtf8().constData(),
@@ -129,6 +138,9 @@
quint32 deviceIndex,
PAFunction pa_move_stream_to_device)
{
+ if (!m_context) {
+ return;
+ }
if (!PAOperation(pa_move_stream_to_device(m_context,
streamIndex,
deviceIndex,