From 1b2d96111e42f6931cd799baf953088df4cf939e Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 19 Aug 2018 21:14:54 +0200 Subject: [PATCH] avoid segfault with saved tvg-id Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b14124bf26d4c61afa89f24002d17842e8cc14a7 Author: TangoCash Date: 2018-08-19 (Sun, 19 Aug 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/movieplayer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 0779fc72e..4b8ac6c8c 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1102,6 +1102,13 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri realUrl = url; return true; } + + //saved tvg-id for epg + if (script[0] == '#') { + realUrl = url; + return true; + } + std::string _script = script; if (_script.find("/") == std::string::npos)