Merge with trunk R2978.
[ardour.git] / libs / ardour / session_time.cc
index 9ae3492ea7cb2227f1443f64187fb9af1db36c46..a388e31d80f3056822f6c2c2b8a3ddfad3d11ebe 100644 (file)
@@ -158,14 +158,6 @@ Session::sync_time_vars ()
        }
        _smpte_frames_per_hour = (nframes_t)rint(smpte_frames_per_second() * 3600.0);
 
-}
-
-int
-Session::set_smpte_format (SmpteFormat format)
-{
-
-       Config->set_smpte_format (format);
-
        last_smpte_valid = false;
        // smpte type bits are the middle two in the upper nibble
        switch ((int) ceil (smpte_frames_per_second())) {
@@ -186,7 +178,13 @@ Session::set_smpte_format (SmpteFormat format)
                }
                break;
        };
+}
 
+int
+Session::set_smpte_format (SmpteFormat format)
+{
+       /* this will trigger any other changes needed */
+       Config->set_smpte_format (format);
        return 0;
 }
 
@@ -569,7 +567,7 @@ Session::jack_timebase_callback (jack_transport_state_t state,
 #endif         
 }
 
-nframes_t
+ARDOUR::nframes_t
 Session::convert_to_frames_at (nframes_t position, AnyTime& any)
 {
        double secs;