From 08d889251b459466779d7f6cb9de8e0a8358b11e Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 28 Jul 2018 17:10:23 +0200 Subject: [PATCH] src/gui/movieplayer.cpp: check return after playback start Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/886140c10b44b3b192262c01c5ee7310dccd5023 Author: Jacek Jendrzej Date: 2018-07-28 (Sat, 28 Jul 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 656b1a658..147e613ed 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -850,8 +850,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 {