]> git.seodisparate.com/gitweb - MeterForPulseAudio/commitdiff
Fix querying sinks/sources 1.7
authorStephen Seo <seo.disparate@gmail.com>
Wed, 20 Jun 2018 10:51:10 +0000 (19:51 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 20 Jun 2018 10:51:10 +0000 (19:51 +0900)
Previous implementation did not halt the program if querying failed.

CMakeLists.txt
Changelog.md
src/MfPA/GetSinkSourceInfo.cpp

index dc2a016a769e1ee73455c1e1641da574386bfd6b..ecd3a1354859772e57821bb82f6950266c17ac93 100644 (file)
@@ -1,6 +1,6 @@
 cmake_minimum_required(VERSION 3.0)
 
-project(MeterForPulseAudio VERSION 1.6)
+project(MeterForPulseAudio VERSION 1.7)
 
 set(MeterForPulseAudio_SOURCES
     GameDevTools/src/GDT/GameLoop.cpp
index c95dd457e08a14ee1041893423fefd588498c4d3..761647e131966ca2a459b7745764fedfeca9ef67 100644 (file)
@@ -1,3 +1,8 @@
+# Version 1.7
+
+Fix listing sinks/sources to halt even when querying failed (previously, only
+halted on successful query of all sinks/sources).
+
 # Version 1.6
 
 Improve options "--list-sinks" and "--list-sources" (now halts after querying
index f20df71d50bd71902b42f7448956c5e018023ea9..20f15b84bf406cfc88f6f5da4b58801e16dedff8 100644 (file)
@@ -110,7 +110,7 @@ void MfPA::GetSinkSourceInfo::startMainLoop()
         [this] (float /* dt */) {
             pa_mainloop_iterate(mainLoop, 0, nullptr);
             if(operation 
-                && pa_operation_get_state(operation) == PA_OPERATION_DONE)
+                && pa_operation_get_state(operation) != PA_OPERATION_RUNNING)
             {
                 pa_operation_unref(operation);
                 operation = nullptr;