Try to fix path for ffprobe.
[dcpomatic.git] / src / lib / delay_line.cc
index 9e6baeba8131f0ebe671f0b9d3112466bfe1e5f8..f6af6f9b12a2b51e1bdad65ffe9b5590f1ed101d 100644 (file)
@@ -37,7 +37,7 @@ DelayLine::DelayLine (shared_ptr<Log> log, double seconds)
 }
 
 void
-DelayLine::process_audio (shared_ptr<AudioBuffers> data, double t)
+DelayLine::process_audio (shared_ptr<const AudioBuffers> data, double t)
 {
        if (_seconds > 0) {
                t += _seconds;
@@ -47,10 +47,10 @@ DelayLine::process_audio (shared_ptr<AudioBuffers> data, double t)
 }
 
 void
-DelayLine::process_video (boost::shared_ptr<Image> image, bool same, boost::shared_ptr<Subtitle> sub, double t)
+DelayLine::process_video (shared_ptr<const Image> image, bool same, boost::shared_ptr<Subtitle> sub, double t)
 {
        if (_seconds < 0) {
-               t += _seconds;
+               t -= _seconds;
        }
 
        Video (image, same, sub, t);