summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-07-08 01:26:33 +0000
committerCarl Hetherington <carl@carlh.net>2010-07-08 01:26:33 +0000
commit3549189f87813b8c9f01f2f6484b34cf923a65ad (patch)
treecc90e6452085cd766490851cfe98af73cca298a4 /gtk2_ardour
parentc546ad359a1edb9cc2c2383cac00d49648b97268 (diff)
Send MTC/MMC on the initial playhead grab as well as on subsequent movement.
git-svn-id: svn://localhost/ardour2/branches/3.0@7393 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc16
1 files changed, 11 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index 1921349893..27ca9b6c78 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -2110,12 +2110,18 @@ CursorDrag::start_grab (GdkEvent* event, Gdk::Cursor* c)
if (_cursor == _editor->playhead_cursor) {
_editor->_dragging_playhead = true;
- if (_editor->session() && _was_rolling && _stop) {
- _editor->session()->request_stop ();
- }
+ if (_editor->session()) {
+ if (_was_rolling && _stop) {
+ _editor->session()->request_stop ();
+ }
+
+ if (_editor->session()->is_auditioning()) {
+ _editor->session()->cancel_audition ();
+ }
- if (_editor->session() && _editor->session()->is_auditioning()) {
- _editor->session()->cancel_audition ();
+ nframes64_t const f = _editor->playhead_cursor->current_frame;
+ _editor->session()->send_mmc_locate (f);
+ _editor->session()->send_full_time_code (f);
}
}