dont crash when opening another file

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17363 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2006-05-07 22:05:23 +00:00
parent c04b6d2dfb
commit 2fd148f926
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ Controller::SetTo(const entry_ref &ref)
acquire_sem(fAudioPlaySem);
acquire_sem(fVideoPlaySem);
StopAudioPlayback();
StopVideoPlayback();
fAudioTrackList->MakeEmpty();
fVideoTrackList->MakeEmpty();
if (fMediaFile)