probable fix for out-of-sync issue across tracks after locate
[ardour.git] / libs / ardour / disk_reader.cc
index 98bb05f0d6f2af826240ede5e6cb74b300d817c5..918761e5371cb6812a3456d256bca5d838f7fc88 100644 (file)
@@ -283,8 +283,10 @@ DiskReader::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame,
 
                /* no need for actual disk data, just advance read pointer and return */
 
-               for (ChannelList::iterator chan = c->begin(); chan != c->end(); ++chan) {
-                       (*chan)->buf->increment_read_ptr (playback_distance);
+               if (!still_locating) {
+                       for (ChannelList::iterator chan = c->begin(); chan != c->end(); ++chan) {
+                               (*chan)->buf->increment_read_ptr (playback_distance);
+                       }
                }
 
                /* if monitoring disk but locating, put silence in the buffers */