- if (ph) {
- DataType t (AudioEngine::instance()->port_engine().port_data_type (ph));
- if (t != DataType::NIL) {
- if (port_has_prefix (p, N_("system:")) ||
- port_has_prefix (p, N_("alsa_pcm:")) ||
- port_has_prefix (p, N_("alsa_midi:"))) {
- extra_system[t].push_back (p);
- } else if (port_has_prefix (p, lpnc)) {
- /* Hide scene ports from non-Tracks Live builds */
- if (!ARDOUR::Profile->get_trx()) {
- if (p.find (_("Scene ")) != string::npos) {
- ++s;
- continue;
- }
+
+ if (!ph) {
+ continue;
+ }
+
+ DataType t (AudioEngine::instance()->port_engine().port_data_type (ph));
+
+ if (t != DataType::NIL) {
+
+ if (port_has_prefix (p, X_("system:")) ||
+ port_has_prefix (p, X_("alsa_pcm:")) ||
+ port_has_prefix (p, X_("alsa_midi:"))) {
+ extra_system[t].push_back (p);
+
+ } else if (port_has_prefix (p, lpnc)) {
+
+ /* we own this port (named after the program) */
+
+ /* Hide scene ports from non-Tracks Live builds */
+ if (!ARDOUR::Profile->get_trx()) {
+ if (p.find (_("Scene ")) != string::npos) {
+ ++s;
+ continue;