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,9 +472,14 @@ bool cPlayback::GetPosition(int &position, int &duration)
|
||||
if (player && player->playback && !player->playback->isPlaying)
|
||||
{
|
||||
hal_info("%s !!!!EOF!!!! < -1\n", __func__);
|
||||
if (isWebChannel) { // WebTV/IPTV
|
||||
position = duration - 1000;
|
||||
return true;
|
||||
} else {
|
||||
position = duration + 1000;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
int64_t vpts = 0;
|
||||
if (player && player->playback)
|
||||
|
@@ -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);
|
||||
|
@@ -48,7 +48,7 @@ bool cPlayback::GetSpeed(int &/*speed*/) const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cPlayback::GetPosition(int &position, int &duration)
|
||||
bool cPlayback::GetPosition(int &position, int &duration, bool /*isWebChannel*/)
|
||||
{
|
||||
printf("%s:%s %d %d\n", FILENAME, __func__, position, duration);
|
||||
position = 0;
|
||||
|
@@ -820,7 +820,7 @@ bool cPlayback::GetSpeed(int &speed) const
|
||||
}
|
||||
|
||||
// in milliseconds
|
||||
bool cPlayback::GetPosition(int &position, int &duration)
|
||||
bool cPlayback::GetPosition(int &position, int &duration, bool /*isWebChannel*/)
|
||||
{
|
||||
if (playing == false)
|
||||
return false;
|
||||
|
@@ -74,7 +74,7 @@ class cPlayback
|
||||
bool SetSpeed(int speed);
|
||||
bool SetSlow(int slow);
|
||||
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);
|
||||
int GetAPid(void);
|
||||
int GetVPid(void);
|
||||
|
@@ -37,7 +37,7 @@ class cPlayback
|
||||
int GetFirstTeletextPid(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(int *apids, unsigned int *ac3flags, unsigned int *numpida, std::string *language);
|
||||
|
Reference in New Issue
Block a user