infoviewer: allow to disable pip with RC_help if g_settings.show_ecm_pos is off (thx to mirz)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 24cac7b6a3
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-13 (Sun, 13 Jan 2019)

Origin message was:
------------------
- infoviewer: allow to disable pip with RC_help if g_settings.show_ecm_pos is off (thx to mirz)

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-01-13 16:09:20 +01:00
parent 7fe588d9a0
commit 84387b2878
8 changed files with 82 additions and 27 deletions

View File

@@ -596,6 +596,7 @@ void CMoviePlayerGui::Cleanup()
p_movie_info = NULL;
autoshot_done = false;
timeshift_deletion = false;
timeshift_to_record = false;
currentaudioname = "Unk";
}
@@ -2072,18 +2073,36 @@ void CMoviePlayerGui::PlayFileEnd(bool restore)
stopped = true;
printf("%s: stopped\n", __func__);
if (timeshift_deletion && (file_name.find("_temp.ts") == file_name.size() - 8))
if (file_name.find("_temp.ts") == file_name.size() - 8)
{
std::string file = file_name;
printf("%s: delete %s\n", __func__, file.c_str());
unlink(file.c_str());
std::string ts_file = file_name;
std::string xml_file;
CMovieInfo mi;
if (mi.convertTs2XmlName(file))
if (!mi.convertTs2XmlName(xml_file))
xml_file.clear();
if (timeshift_to_record)
{
printf("%s: delete %s\n", __func__, file.c_str());
unlink(file.c_str());
printf("%s: move %s\n", __func__, ts_file.c_str());
//move here
if (!xml_file.empty())
{
printf("%s: move %s\n", __func__, xml_file.c_str());
//move here
}
timeshift_to_record = false;
}
else if (timeshift_deletion)
{
printf("%s: delete %s\n", __func__, ts_file.c_str());
unlink(ts_file.c_str());
if (!xml_file.empty())
{
printf("%s: delete %s\n", __func__, xml_file.c_str());
unlink(xml_file.c_str());
}
timeshift_deletion = false;
}
timeshift_deletion = false;
}
if (!filelist.empty() && filelist_it != filelist.end()) {