mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libspark: allow streams to play for more than 10 seconds
Neutrino determines "end of file" amongst others by checking if the current position is less than one second before file length. So for the streaming case, alwas pretend to be two seconds behind.
This commit is contained in:
@@ -329,7 +329,7 @@ bool cPlayback::GetPosition(int &position, int &duration)
|
||||
player->GetDuration(length);
|
||||
|
||||
if(length <= 0)
|
||||
duration = position + AV_TIME_BASE / 1000;
|
||||
duration = position + 2 * AV_TIME_BASE / 1000;
|
||||
else
|
||||
duration = length * 1000 / AV_TIME_BASE;
|
||||
|
||||
|
Reference in New Issue
Block a user