enable sync genlock & setFPS option for both MTC & LTC
authorRobin Gareus <robin@gareus.org>
Tue, 16 Oct 2012 23:04:00 +0000 (23:04 +0000)
committerRobin Gareus <robin@gareus.org>
Tue, 16 Oct 2012 23:04:00 +0000 (23:04 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13293 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/rc_option_editor.cc

index c8899621585ab55a35fb1f787a26d1dfd8f4780f..52ef644339181160444a72143596cf3ca82b9ce9 100644 (file)
@@ -1725,12 +1725,16 @@ RCOptionEditor::parameter_changed (string const & p)
                _solo_control_is_listen_control->set_sensitive (s);
                _listen_position->set_sensitive (s);
        } else if (p == "sync-source") {
-               if (Config->get_sync_source() != ARDOUR::MTC) {
-                       _sync_genlock->set_sensitive (false);
-                       _sync_framerate->set_sensitive (false);
-               } else {
+               switch(Config->get_sync_source()) {
+               case ARDOUR::MTC:
+               case ARDOUR::LTC:
                        _sync_genlock->set_sensitive (true);
                        _sync_framerate->set_sensitive (true);
+                       break;
+               default:
+                       _sync_genlock->set_sensitive (false);
+                       _sync_framerate->set_sensitive (false);
+                       break;
                }
        }
 }