reload webtv/iptv stream if connection lost

Origin commit data
------------------
Branch: master
Commit: ef8dbcf64c
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:
BPanther
2023-07-16 21:21:03 +02:00
committed by vanhofen
parent 560cec3e08
commit 3f080d5aef
6 changed files with 13 additions and 8 deletions

View File

@@ -439,7 +439,7 @@ void cPlayback::GetPts(uint64_t &pts)
}
// in milliseconds
bool cPlayback::GetPosition(int &position, int &duration)
bool cPlayback::GetPosition(int &position, int &duration, bool isWebChannel)
{
bool got_duration = false;
hal_debug("%s %d %d\n", __func__, position, duration);
@@ -472,8 +472,13 @@ bool cPlayback::GetPosition(int &position, int &duration)
if (player && player->playback && !player->playback->isPlaying)
{
hal_info("%s !!!!EOF!!!! < -1\n", __func__);
position = duration + 1000;
return false;
if (isWebChannel) { // WebTV/IPTV
position = duration - 1000;
return true;
} else {
position = duration + 1000;
return false;
}
}
int64_t vpts = 0;