Location API to remove xrun markers
This commit is contained in:
parent
5640f820d3
commit
951257909f
|
@ -202,6 +202,7 @@ public:
|
|||
void remove (Location *);
|
||||
void clear ();
|
||||
void clear_markers ();
|
||||
void clear_xrun_markers ();
|
||||
void clear_ranges ();
|
||||
|
||||
XMLNode& get_state (void);
|
||||
|
|
|
@ -952,6 +952,29 @@ Locations::clear_markers ()
|
|||
changed (); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
void
|
||||
Locations::clear_xrun_markers ()
|
||||
{
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (lock);
|
||||
LocationList::iterator tmp;
|
||||
|
||||
for (LocationList::iterator i = locations.begin(); i != locations.end(); ) {
|
||||
tmp = i;
|
||||
++tmp;
|
||||
|
||||
if ((*i)->is_xrun()) {
|
||||
delete *i;
|
||||
locations.erase (i);
|
||||
}
|
||||
|
||||
i = tmp;
|
||||
}
|
||||
}
|
||||
|
||||
changed (); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
void
|
||||
Locations::clear_ranges ()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user