switch (types[0]) {
case 's':
- for (Locations::LocationList::const_iterator l = ll.begin(); l != ll.end(); ++l) {
- if ((*l)->is_mark ()) {
- if (strcmp (&argv[0]->s, (*l)->name().c_str()) == 0) {
- session->request_locate ((*l)->start (), false);
- return 0;
+ {
+ Location *cur_mark = 0;
+ for (Locations::LocationList::const_iterator l = ll.begin(); l != ll.end(); ++l) {
+ if ((*l)->is_mark ()) {
+ if (strcmp (&argv[0]->s, (*l)->name().c_str()) == 0) {
+ session->request_locate ((*l)->start (), false);
+ return 0;
+ } else if ((*l)->start () == session->transport_sample()) {
+ cur_mark = (*l);
+ }
}
}
+ if (cur_mark) {
+ cur_mark->set_name (&argv[0]->s);
+ return 0;
+ }
+ PBD::warning << string_compose ("Marker: \"%1\" - does not exist", &argv[0]->s) << endmsg;
+ return -1;
}
break;
case 'i':
int
OSC::send_group_list (lo_address addr)
{
- //std::list<RouteGroup*> const & route_groups () const {
lo_message reply;
reply = lo_message_new ();