Project

General

Profile

Actions

Bug #2524

open

error: 'string' was not declared in this scope

Added by Anonymous over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
09/07/2017
Due date:
% Done:

0%

Estimated time:

Description

when compiling vdr-plex on Fedora26 this error appears:

m3u8Parser.cpp: In member function 'bool cM3u8Parser::Parse(std::istream&)':
m3u8Parser.cpp:52:13: error: 'string' was not declared in this scope
             string var;
             ^~~~~~
...
m3u8Parser.cpp: In member function 'bool cM3u8Parser::Parse(std::istream&)':
m3u8Parser.cpp:60:17: error: 'string' was not declared in this scope
                 string value;
                 ^~~~~~

patch to solve this:

--- vdr-plugin-plex-0.4.0/m3u8Parser.cpp        2016-06-26 16:04:53.000000000 +0200
+++ vdr-plugin-plex-0.4.0.new/m3u8Parser.cpp    2017-09-07 09:38:51.561464924 +0200
@@ -49,15 +49,14 @@
         }

         if (re.FullMatch(line)) {
-            string var;
-            //string value;
+            std::string var;
             re.PartialMatch(line, &var);
             if ("EXT-X-TARGETDURATION" == var) {
                 int value;
                 reVal.PartialMatch(line, &value);
                 TargetDuration = value;
             } else if ("EXT-X-ALLOW-CACHE" == var) {
-                string value;
+                std::string value;
                 reVal.PartialMatch(line, &value);
                 AllowCache = "YES" == value;
             } else if ("EXT-X-MEDIA-SEQUENCE" == var) {

No data to display

Actions

Also available in: Atom PDF