summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-14 20:29:44 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-15 09:20:17 +0100
commit0c846af54055b9915c6c68617cd28176d5f84351 (patch)
tree72a7c31582f3919a4e18c91ccaa412c0d91a6056 /src/lib/audio_decoder.h
parent6acf4527c0b2919f5774d9dbff2ad5c0fa98075a (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.h2
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)