gui/movieplayer.cpp: fix for 6fe70ff17d, audio tracks not cleared

This commit is contained in:
[CST] Focus
2013-09-04 17:39:45 +04:00
parent 4ddf59b175
commit cbc6c5867f

View File

@@ -191,6 +191,12 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
Cleanup();
isMovieBrowser = false;
isBookmark = false;
timeshift = 0;
isHTTP = false;
isUPNP = false;
if (actionKey == "tsmoviebrowser") {
isMovieBrowser = true;
moviebrowser->setMode(MB_SHOW_RECORDS);
@@ -218,7 +224,6 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
#endif
else if (actionKey == "upnp") {
isUPNP = true;
p_movie_info = NULL;
is_file_player = 1;
PlayFile();
}
@@ -327,11 +332,6 @@ void CMoviePlayerGui::Cleanup()
numsubs = 0;
startposition = 0;
isMovieBrowser = false;
isBookmark = false;
timeshift = 0;
isHTTP = false;
isUPNP = false;
is_file_player = false;
p_movie_info = NULL;
}
@@ -341,6 +341,7 @@ bool CMoviePlayerGui::SelectFile()
bool ret = false;
menu_ret = menu_return::RETURN_REPAINT;
Cleanup();
file_name = "";
full_name = "";