Fix broken whitespace. I'd apologize for the compile times if it was my fault :D
[ardour.git] / libs / ardour / midi_ui.cc
index 5d9407d5796dd7b9d312cfd925d8697263f88419..06c9428ad7b2a2b5b618bce310fac8e0f9305c8c 100644 (file)
@@ -46,7 +46,7 @@ MidiControlUI* MidiControlUI::_instance = 0;
 
 MidiControlUI::MidiControlUI (Session& s)
        : AbstractUI<MidiUIRequest> (_("midiui"))
-       , _session (s) 
+       , _session (s)
 {
        MIDI::Manager::instance()->PortsChanged.connect_same_thread (rebind_connection, boost::bind (&MidiControlUI::change_midi_ports, this));
        _instance = this;
@@ -107,7 +107,7 @@ MidiControlUI::midi_input_handler (IOCondition ioc, MIDI::Port* port)
                CrossThreadChannel::drain (port->selectable());
 
                DEBUG_TRACE (DEBUG::MidiIO, string_compose ("data available on %1\n", port->name()));
-               nframes64_t now = _session.engine().frame_time();
+               framepos_t now = _session.engine().frame_time();
                port->parse (now);
        }
 
@@ -145,20 +145,16 @@ MidiControlUI::reset_ports ()
 
                        port_sources.push_back (psrc->gobj());
                        g_source_ref (psrc->gobj());
-               } 
+               }
        }
 }
 
 void
 MidiControlUI::thread_init ()
-{      
+{
        struct sched_param rtparam;
 
-       char* c = new char[7];
-       strcpy (c, X_("midiUI"));
-       pthread_set_name (c);
-
-       cerr << "MIDI UI running\n";
+       pthread_set_name (X_("midiUI"));
 
        PBD::notify_gui_about_thread_creation (X_("gui"), pthread_self(), X_("MIDI"), 2048);
        SessionEvent::create_per_thread_pool (X_("MIDI I/O"), 128);