summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian <zerov83@gmail.com>2016-06-26 14:35:18 +0200
committerChristian <zerov83@gmail.com>2016-06-26 14:35:18 +0200
commitd13d6f430cc29abf6920bef4ee9d3d3be11d52e6 (patch)
tree5149bd3a943a18a33b1037cfe613bd799fd8c74b
parent479c7fed73af475acb49508b64bcab788c2d372f (diff)
downloadvdr-plugin-plex-d13d6f430cc29abf6920bef4ee9d3d3be11d52e6.tar.gz
vdr-plugin-plex-d13d6f430cc29abf6920bef4ee9d3d3be11d52e6.tar.bz2
Fix for newer versions of PMS and "Plex for Android"
-rw-r--r--hlsPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
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) {