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

Origin commit data
------------------
Branch: ni/coolstream
Commit: cbc6c5867f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-09-04 (Wed, 04 Sep 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-09-04 17:39:45 +04:00
parent bd520a8e67
commit fab62e1cd3

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 = "";