mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
reload webtv/iptv stream if connection lost
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6345e5bf5a
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2023-07-16 (Sun, 16 Jul 2023)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1002,11 +1002,23 @@ void* CMoviePlayerGui::bgPlayThread(void *arg)
|
||||
mutex.unlock();
|
||||
|
||||
while(webtv_started) {
|
||||
if (mp->playback->GetPosition(mp->position, mp->duration)) {
|
||||
if (mp->playback->GetPosition(mp->position, mp->duration, mp->isWebChannel)) {
|
||||
#if 0
|
||||
printf("CMoviePlayerGui::bgPlayThread: position %d duration %d (%d)\n", mp->position, mp->duration, mp->duration-mp->position);
|
||||
#endif
|
||||
if (pos == mp->position && mp->duration > 0)
|
||||
if (mp->isWebChannel)
|
||||
#if defined (BOXMODEL_VUPLUS_ARM)
|
||||
eof = 6;
|
||||
#else
|
||||
{
|
||||
if (eof == 5)
|
||||
eof = 6;
|
||||
else
|
||||
eof = 5;
|
||||
}
|
||||
#endif
|
||||
else
|
||||
eof++;
|
||||
else
|
||||
eof = 0;
|
||||
@@ -1545,7 +1557,7 @@ bool CMoviePlayerGui::PlayFileStart(void)
|
||||
towait = 20;
|
||||
}
|
||||
for(i = 0; i < cnt; i++) {
|
||||
playback->GetPosition(position, duration);
|
||||
playback->GetPosition(position, duration, isWebChannel);
|
||||
startposition = (duration - position);
|
||||
|
||||
//printf("CMoviePlayerGui::PlayFile: waiting for data, position %d duration %d (%d), start %d\n", position, duration, towait, startposition);
|
||||
@@ -1725,7 +1737,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
FileTimeOSD_tmp++;
|
||||
|
||||
if ((playstate >= CMoviePlayerGui::PLAY) && (timeshift != TSHIFT_MODE_OFF || (playstate != CMoviePlayerGui::PAUSE))) {
|
||||
if (playback->GetPosition(position, duration)) {
|
||||
if (playback->GetPosition(position, duration, isWebChannel)) {
|
||||
FileTimeOSD->update(position, duration);
|
||||
|
||||
if (FileTimeOSD_tmp > -1 && !FileTimeOSD->IsVisible() && g_settings.movieplayer_timeosd_while_searching)
|
||||
@@ -2075,7 +2087,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
handleMovieBrowser(CRCInput::RC_0, position);
|
||||
} else if (msg == (neutrino_msg_t) g_settings.mpkey_goto) {
|
||||
bool cancel = true;
|
||||
playback->GetPosition(position, duration);
|
||||
playback->GetPosition(position, duration, isWebChannel);
|
||||
int ss = position/1000;
|
||||
int hh = ss/3600;
|
||||
ss -= hh * 3600;
|
||||
@@ -2893,7 +2905,7 @@ void CMoviePlayerGui::UpdatePosition()
|
||||
if (cnt > 5)
|
||||
break;
|
||||
}
|
||||
while (!playback->GetPosition(position, duration));
|
||||
while (!playback->GetPosition(position, duration, isWebChannel));
|
||||
|
||||
if (duration > 100)
|
||||
file_prozent = (unsigned char) (position / (duration / 100));
|
||||
|
Reference in New Issue
Block a user