diff options
Diffstat (limited to 'src/player')
-rw-r--r-- | src/player/Thread.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index e20b9b3a9..b359ec4b8 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -169,14 +169,9 @@ private: xfade_state = CrossFadeState::UNKNOWN; } - void ClearAndDeletePipe() noexcept { - pipe->Clear(); - delete pipe; - } - void ClearAndReplacePipe(MusicPipe *_pipe) noexcept { ResetCrossFade(); - ClearAndDeletePipe(); + delete pipe; pipe = _pipe; } @@ -1070,7 +1065,7 @@ Player::Run() noexcept CancelPendingSeek(); StopDecoder(); - ClearAndDeletePipe(); + delete pipe; cross_fade_tag.reset(); |