From d13d6f430cc29abf6920bef4ee9d3d3be11d52e6 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 26 Jun 2016 14:35:18 +0200 Subject: Fix for newer versions of PMS and "Plex for Android" --- hlsPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hlsPlayer.cpp b/hlsPlayer.cpp index fc0c7cb..2281dcb 100644 --- a/hlsPlayer.cpp +++ b/hlsPlayer.cpp @@ -52,7 +52,7 @@ cHlsSegmentLoader::~cHlsSegmentLoader() { } void cHlsSegmentLoader::SkipEmptySegments(int segmentDuration) { - pcrecpp::RE re("&offset=(\\d+)", pcrecpp::RE_Options(PCRE_CASELESS)); + pcrecpp::RE re("&offset=(-?\\d+)", pcrecpp::RE_Options(PCRE_CASELESS)); int value; re.PartialMatch(m_startUri.getQuery(), &value); if (value > segmentDuration) { -- cgit v1.2.3