mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
src/gui/movieplayer.cpp fi possible segaults
This commit is contained in:
@@ -502,9 +502,11 @@ bool CMoviePlayerGui::prepareFile(CFile *file)
|
|||||||
if (isMovieBrowser) {
|
if (isMovieBrowser) {
|
||||||
if (filelist_it != filelist.end()) {
|
if (filelist_it != filelist.end()) {
|
||||||
unsigned idx = filelist_it - filelist.begin();
|
unsigned idx = filelist_it - filelist.begin();
|
||||||
p_movie_info = milist[idx];
|
if(milist.size() > idx){
|
||||||
startposition = p_movie_info->bookmarks.start > 0 ? p_movie_info->bookmarks.start*1000 : -1;
|
p_movie_info = milist[idx];
|
||||||
printf("CMoviePlayerGui::prepareFile: file %s start %d\n", file_name.c_str(), startposition);
|
startposition = p_movie_info->bookmarks.start > 0 ? p_movie_info->bookmarks.start*1000 : -1;
|
||||||
|
printf("CMoviePlayerGui::prepareFile: file %s start %d\n", file_name.c_str(), startposition);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (isYT) {
|
if (isYT) {
|
||||||
file_name = file->Url;
|
file_name = file->Url;
|
||||||
@@ -1643,7 +1645,8 @@ void CMoviePlayerGui::callInfoViewer(bool init_vzap_it)
|
|||||||
if (vzap_it <= filelist.end()) {
|
if (vzap_it <= filelist.end()) {
|
||||||
unsigned idx = vzap_it - filelist.begin();
|
unsigned idx = vzap_it - filelist.begin();
|
||||||
//printf("CMoviePlayerGui::%s: idx: %d\n", __func__, idx);
|
//printf("CMoviePlayerGui::%s: idx: %d\n", __func__, idx);
|
||||||
mi = milist[idx];
|
if(milist.size() > idx)
|
||||||
|
mi = milist[idx];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_InfoViewer->showMovieTitle(playstate, mi->epgEpgId >>16, mi->epgChannel, mi->epgTitle, mi->epgInfo1,
|
g_InfoViewer->showMovieTitle(playstate, mi->epgEpgId >>16, mi->epgChannel, mi->epgTitle, mi->epgInfo1,
|
||||||
|
Reference in New Issue
Block a user