reload webtv/iptv stream if connection lost

This commit is contained in:
BPanther
2023-07-16 21:21:03 +02:00
committed by Thilo Graf
parent 38372a143e
commit 344cf247a6
6 changed files with 13 additions and 8 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);

View File

@@ -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);