Another thinko fix.
authorCarl Hetherington <cth@carlh.net>
Sat, 25 Jan 2020 20:13:33 +0000 (21:13 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 25 Jan 2020 20:13:33 +0000 (21:13 +0100)
src/lib/audio_buffers.cc

index 82df9d6..63204dd 100644 (file)
@@ -125,7 +125,9 @@ AudioBuffers::set_frames (int32_t f)
 {
        DCPOMATIC_ASSERT (f <= _allocated_frames);
 
-       make_silent (f, _frames - f);
+       if (f < _frames) {
+               make_silent (f, _frames - f);
+       }
        _frames = f;
 }