summaryrefslogtreecommitdiff
path: root/libs/ardour/presentation_info.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-01-27 19:17:47 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-01-27 22:17:53 +0100
commit4821def1736c55866fc6f354dcd98a61c3451101 (patch)
treecd434b0910bc49791b704b8e05951e2cafc1a8fe /libs/ardour/presentation_info.cc
parent155b1dc4c88fb9f4fdca40dfca0ffaede1fc0ea4 (diff)
show what PresentationInfo::Change is being used for
Diffstat (limited to 'libs/ardour/presentation_info.cc')
-rw-r--r--libs/ardour/presentation_info.cc20
1 files changed, 18 insertions, 2 deletions
diff --git a/libs/ardour/presentation_info.cc b/libs/ardour/presentation_info.cc
index a9af018a9d..45acef2963 100644
--- a/libs/ardour/presentation_info.cc
+++ b/libs/ardour/presentation_info.cc
@@ -26,6 +26,7 @@
#include "pbd/enumwriter.h"
#include "pbd/error.h"
#include "pbd/failed_constructor.h"
+#include "pbd/stacktrace.h"
#include "pbd/xml++.h"
#include "ardour/presentation_info.h"
@@ -66,8 +67,17 @@ PresentationInfo::unsuspend_change_signal ()
*/
if (g_atomic_int_dec_and_test (const_cast<gint*> (&_change_signal_suspended))) {
- _pending_static_changes.clear ();
- Change (pc); /* EMIT SIGNAL */
+ if (!pc.empty()) {
+ _pending_static_changes.clear ();
+
+ std::cerr << "PI change (unsuspended): ";
+ for (PropertyChange::const_iterator x = pc.begin(); x != pc.end(); ++x) {
+ std::cerr << g_quark_to_string (*x) << ',';
+ }
+ std::cerr << '\n';
+
+ Change (pc); /* EMIT SIGNAL */
+ }
}
}
@@ -83,6 +93,12 @@ PresentationInfo::send_static_change (const PropertyChange& what_changed)
return;
}
+ std::cerr << "PI change (direct): ";
+ for (PropertyChange::const_iterator x = what_changed.begin(); x != what_changed.end(); ++x) {
+ std::cerr << g_quark_to_string (*x) << ',';
+ }
+ std::cerr << '\n';
+
Change (what_changed);
}