Copy DCP name layout fix from master.
[dcpomatic.git] / src / lib / sndfile_decoder.cc
index c37a8447483ba49d3e39ade148d08ebfd26f6841..09059a8b0717adbf2b8df12b11c6ec48a941477b 100644 (file)
@@ -65,7 +65,7 @@ SndfileDecoder::~SndfileDecoder ()
 }
 
 bool
-SndfileDecoder::pass ()
+SndfileDecoder::pass (PassReason)
 {
        if (_remaining == 0) {
                return true;
@@ -74,7 +74,7 @@ SndfileDecoder::pass ()
        /* Do things in half second blocks as I think there may be limits
           to what FFmpeg (and in particular the resampler) can cope with.
        */
-       sf_count_t const block = _sndfile_content->content_audio_frame_rate() / 2;
+       sf_count_t const block = _sndfile_content->audio_frame_rate() / 2;
        sf_count_t const this_time = min (block, _remaining);
 
        int const channels = _sndfile_content->audio_channels ();