From 1b71d71b4b020c88ad6973486efb46414e40d953 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 28 Jul 2018 14:29:21 +0200 Subject: [PATCH] src/gui/movieplayer.cpp: check return after playbeck start --- src/gui/movieplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 1bbf5f844..7a8ae6eef 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -851,8 +851,8 @@ bool CMoviePlayerGui::StartWebtv(void) playback->Open(is_file_player ? PLAYMODE_FILE : PLAYMODE_TS); bool res = playback->Start((char *) file_name.c_str(), cookie_header);//url with cookies - - playback->SetSpeed(1); + if (res) + playback->SetSpeed(1); if (!res) { playback->Close(); } else {