diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-03-14 20:29:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-02 22:20:05 +0200 |
| commit | e8b21ce5aaf46606e14c71f870d76be94cbaa608 (patch) | |
| tree | e5aae467d984b0d6a34a2dfecae29c2bdaea13cd /src/lib/audio_decoder.h | |
| parent | 4ea552fbdefa096c461c933f09beb1c6d0cc3f8a (diff) | |
Fix incorrectly-timed emission of silence padding causing buffer fill (#2217).
On initialisation or after seek we insert silence corresponding to
a positive delay in an audio stream. Previously this inserted silence
was done at time 0, so that after a seek to time T the silent frames
would come out of the audio merger at time 0 and then the player would
fill the space up to time T with silence. If T was far enough along
this would fill the audio buffers without there being any video.
Diffstat (limited to 'src/lib/audio_decoder.h')
| -rw-r--r-- | src/lib/audio_decoder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index 81b48b73c..a2e06f11c 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -61,7 +61,7 @@ public: boost::signals2::signal<void (AudioStreamPtr, ContentAudio)> Data; private: - void silence (int milliseconds); + void silence (AudioStreamPtr stream, int milliseconds); std::shared_ptr<const AudioContent> _content; /** Frame after the last one that was emitted from Data (i.e. at the resampled rate, if applicable) |
