mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
gui/movieplayer.cpp: fix for 0e2d297ace
, audio tracks not cleared
Origin commit data
------------------
Commit: cbc6c5867f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-09-04 (Wed, 04 Sep 2013)
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
|
Reference in New Issue
Block a user