mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
movieplayer: fix unnecessary save xml file in stream mode
Origin commit data
------------------
Branch: ni/coolstream
Commit: 907caf372a
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-03 (Mon, 03 Jun 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2455,6 +2455,7 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
if (p_movie_info->length == 0) {
|
if (p_movie_info->length == 0) {
|
||||||
p_movie_info->length = (float)duration / 60 / 1000 + 0.5;
|
p_movie_info->length = (float)duration / 60 / 1000 + 0.5;
|
||||||
}
|
}
|
||||||
|
if (!isYT && !isHTTP && !isUPNP)
|
||||||
cMovieInfo.saveMovieInfo(*p_movie_info);
|
cMovieInfo.saveMovieInfo(*p_movie_info);
|
||||||
//p_movie_info->fileInfoStale(); //TODO: we might to tell the Moviebrowser that the movie info has changed, but this could cause long reload times when reentering the Moviebrowser
|
//p_movie_info->fileInfoStale(); //TODO: we might to tell the Moviebrowser that the movie info has changed, but this could cause long reload times when reentering the Moviebrowser
|
||||||
}
|
}
|
||||||
@@ -2565,6 +2566,7 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
new_bookmark.length = play_sec - new_bookmark.pos;
|
new_bookmark.length = play_sec - new_bookmark.pos;
|
||||||
TRACE("[mp] commercial length: %d\r\n", new_bookmark.length);
|
TRACE("[mp] commercial length: %d\r\n", new_bookmark.length);
|
||||||
if (cMovieInfo.addNewBookmark(p_movie_info, new_bookmark) == true) {
|
if (cMovieInfo.addNewBookmark(p_movie_info, new_bookmark) == true) {
|
||||||
|
if (!isYT && !isHTTP && !isUPNP)
|
||||||
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
||||||
}
|
}
|
||||||
new_bookmark.pos = 0; // clear again, since this is used as flag for bookmark activity
|
new_bookmark.pos = 0; // clear again, since this is used as flag for bookmark activity
|
||||||
@@ -2575,6 +2577,7 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
new_bookmark.pos = play_sec;
|
new_bookmark.pos = play_sec;
|
||||||
TRACE("[mp] loop length: %d\r\n", new_bookmark.length);
|
TRACE("[mp] loop length: %d\r\n", new_bookmark.length);
|
||||||
if (cMovieInfo.addNewBookmark(p_movie_info, new_bookmark) == true) {
|
if (cMovieInfo.addNewBookmark(p_movie_info, new_bookmark) == true) {
|
||||||
|
if (!isYT && !isHTTP && !isUPNP)
|
||||||
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
||||||
jump_not_until = play_sec + 5; // avoid jumping for this time
|
jump_not_until = play_sec + 5; // avoid jumping for this time
|
||||||
}
|
}
|
||||||
@@ -2646,6 +2649,7 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
new_bookmark.pos = play_sec;
|
new_bookmark.pos = play_sec;
|
||||||
new_bookmark.length = 0;
|
new_bookmark.length = 0;
|
||||||
if (cMovieInfo.addNewBookmark(p_movie_info, new_bookmark) == true)
|
if (cMovieInfo.addNewBookmark(p_movie_info, new_bookmark) == true)
|
||||||
|
if (!isYT && !isHTTP && !isUPNP)
|
||||||
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
||||||
new_bookmark.pos = 0; // clear again, since this is used as flag for bookmark activity
|
new_bookmark.pos = 0; // clear again, since this is used as flag for bookmark activity
|
||||||
} else if (cSelectedMenuBookStart[3].selected == true) {
|
} else if (cSelectedMenuBookStart[3].selected == true) {
|
||||||
@@ -2662,11 +2666,13 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
/* Moviebrowser movie start bookmark */
|
/* Moviebrowser movie start bookmark */
|
||||||
p_movie_info->bookmarks.start = play_sec;
|
p_movie_info->bookmarks.start = play_sec;
|
||||||
TRACE("[mp] New movie start pos: %d\r\n", p_movie_info->bookmarks.start);
|
TRACE("[mp] New movie start pos: %d\r\n", p_movie_info->bookmarks.start);
|
||||||
|
if (!isYT && !isHTTP && !isUPNP)
|
||||||
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
||||||
} else if (cSelectedMenuBookStart[6].selected == true) {
|
} else if (cSelectedMenuBookStart[6].selected == true) {
|
||||||
/* Moviebrowser movie end bookmark */
|
/* Moviebrowser movie end bookmark */
|
||||||
p_movie_info->bookmarks.end = play_sec;
|
p_movie_info->bookmarks.end = play_sec;
|
||||||
TRACE("[mp] New movie end pos: %d\r\n", p_movie_info->bookmarks.end);
|
TRACE("[mp] New movie end pos: %d\r\n", p_movie_info->bookmarks.end);
|
||||||
|
if (!isYT && !isHTTP && !isUPNP)
|
||||||
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
cMovieInfo.saveMovieInfo(*p_movie_info); /* save immediately in xml file */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user