mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
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:
@@ -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;
|
||||
|
@@ -54,7 +54,7 @@ class cPlayback
|
||||
int GetTeletextPid(void);
|
||||
bool SetSpeed(int speed);
|
||||
bool GetSpeed(int &speed) const;
|
||||
bool GetPosition(int &position, int &duration);
|
||||
bool GetPosition(int &position, int &duration, bool isWebChannel = false);
|
||||
void GetPts(uint64_t &pts);
|
||||
bool SetPosition(int position, bool absolute = false);
|
||||
void FindAllPids(uint16_t *apids, unsigned short *ac3flags, uint16_t *numpida, std::string *language);
|
||||
|
Reference in New Issue
Block a user