From 238f2636d67f361564f80554d5efa6a266b1a64a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Fri, 8 Jan 2016 17:29:56 +0100 Subject: [PATCH] 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. --- libspark/playback_libeplayer3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libspark/playback_libeplayer3.cpp b/libspark/playback_libeplayer3.cpp index 2dc1a94..738ab3a 100644 --- a/libspark/playback_libeplayer3.cpp +++ b/libspark/playback_libeplayer3.cpp @@ -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;