moved outputItemPlayingNow.reset() from stopOutputAudio() to onStop()

this fixed bug #1445
This commit is contained in:
fgerlits 2005-09-05 10:01:43 +00:00
parent 4d09eb1fa2
commit ae6fb6216d

View file

@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Author : $Author: maroy $ Author : $Author: fgerlits $
Version : $Revision: 1.73 $ Version : $Revision: 1.74 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/GLiveSupport.cxx,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/GLiveSupport.cxx,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -1045,7 +1045,6 @@ GLiveSupport :: stopOutputAudio(void)
if (outputItemPlayingNow) { if (outputItemPlayingNow) {
outputPlayerIsPaused = false; outputPlayerIsPaused = false;
onStop(); onStop();
outputItemPlayingNow.reset();
} }
} }
@ -1057,6 +1056,7 @@ void
LiveSupport :: GLiveSupport :: LiveSupport :: GLiveSupport ::
GLiveSupport :: onStop(void) throw () GLiveSupport :: onStop(void) throw ()
{ {
outputItemPlayingNow.reset();
outputPlayer->close(); outputPlayer->close();
Ptr<Playable>::Ref playable = masterPanel->getNextItemToPlay(); Ptr<Playable>::Ref playable = masterPanel->getNextItemToPlay();