projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update osx dmg packaging to new pango
[ardour.git]
/
gtk2_ardour
/
midi_tracer.cc
diff --git
a/gtk2_ardour/midi_tracer.cc
b/gtk2_ardour/midi_tracer.cc
index ba116d39aa84dc170f0e333cdaf71d54194f9940..ea4b0c2d545cdaae2e87e20cebf337645689eb85 100644
(file)
--- a/
gtk2_ardour/midi_tracer.cc
+++ b/
gtk2_ardour/midi_tracer.cc
@@
-404,9
+404,9
@@
MidiTracer::tracer (Parser&, byte* msg, size_t len)
fifo.write (&buf, 1);
fifo.write (&buf, 1);
- if (g_atomic_int_get (
&_update_queued
) == 0) {
+ if (g_atomic_int_get (
const_cast<gint*> (&_update_queued)
) == 0) {
gui_context()->call_slot (invalidator (*this), boost::bind (&MidiTracer::update, this));
gui_context()->call_slot (invalidator (*this), boost::bind (&MidiTracer::update, this));
- g_atomic_int_inc (
&_update_queued
);
+ g_atomic_int_inc (
const_cast<gint*> (&_update_queued)
);
}
}
}
}
@@
-414,7
+414,7
@@
void
MidiTracer::update ()
{
bool updated = false;
MidiTracer::update ()
{
bool updated = false;
- g_atomic_int_dec_and_test (
&_update_queued
);
+ g_atomic_int_dec_and_test (
const_cast<gint*> (&_update_queued)
);
RefPtr<TextBuffer> buf (text.get_buffer());
RefPtr<TextBuffer> buf (text.get_buffer());