Various fixes to push audio vaguely in the right direction.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index b7b70e0618ad129137b6e773e388d0ed59d05e35..1bae99d6368b5b3f3031ba1450e40d2144a7eda5 100644 (file)
@@ -112,7 +112,6 @@ FFmpegDecoder::flush ()
 
        if (audio) {
                decode_audio_packet ();
-               audio->flush ();
        }
 }
 
@@ -299,6 +298,8 @@ FFmpegDecoder::bytes_per_audio_sample (shared_ptr<FFmpegAudioStream> stream) con
 void
 FFmpegDecoder::seek (ContentTime time, bool accurate)
 {
+       Decoder::seek (time, accurate);
+
        /* If we are doing an `accurate' seek, we need to use pre-roll, as
           we don't really know what the seek will give us.
        */