From: Carl Hetherington Date: Thu, 11 Jul 2013 14:53:52 +0000 (+0100) Subject: Remove bad attempt at flushing resamplers. X-Git-Tag: v2.0.48~1337^2~272^2 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=8bdc282a88cbd0446b06866b9436c43200886314;p=dcpomatic.git Remove bad attempt at flushing resamplers. --- diff --git a/src/lib/player.cc b/src/lib/player.cc index 6db7ff693..7ab72d9a1 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -264,9 +264,6 @@ Player::process_audio (weak_ptr weak_piece, shared_ptrcontent_audio_frame_rate() != content->output_audio_frame_rate()) { shared_ptr r = resampler (content); audio = r->run (audio); - _last_resampler = r; - } else { - _last_resampler.reset (); } /* Remap channels */ @@ -343,12 +340,6 @@ Player::flush () _audio_buffers.set_frames (0); } - if (_last_resampler) { -// shared_ptr resamp = _last_resampler->flush (); -// Audio (resamp, _audio_position); -// _audio_position += _film->audio_frames_to_time (resamp->frames ()); - } - while (_video_position < _audio_position) { emit_black (); } diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc index cc5072442..565fb69c2 100644 --- a/src/lib/resampler.cc +++ b/src/lib/resampler.cc @@ -80,6 +80,7 @@ Resampler::run (shared_ptr in) return resampled; } +/* XXX: no-one calls this */ shared_ptr Resampler::flush () {