From 32d024e825e97359350805c065bb42f2f6bea5c3 Mon Sep 17 00:00:00 2001 From: "bjorn.olievier" Date: Tue, 8 Apr 2008 17:46:46 +0000 Subject: [PATCH] Stop currently playing song when starting a new one --- src/core/audio/Transport.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/audio/Transport.cpp b/src/core/audio/Transport.cpp index 24c150e02..8aaa8234f 100644 --- a/src/core/audio/Transport.cpp +++ b/src/core/audio/Transport.cpp @@ -88,6 +88,12 @@ void Transport::Start(const utfstring path) if (success) { this->PlaybackStartedOk(); + + // Stop currently playing song if any + if (this->openStreams.size() > 1) + { + this->Stop(0); + } } else {