From d9224e10509ef141ad96b62fb96ee64aab5e14e7 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 11 Jun 2017 20:00:33 +0200 Subject: [PATCH] src/gui/movieplayer.cpp fix possible segfault Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/cca6526b2f2f7415841c6aa698a8c221a26962bd Author: Jacek Jendrzej Date: 2017-06-11 (Sun, 11 Jun 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/movieplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index d108e5473..5ecc32a27 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -923,7 +923,7 @@ bool CMoviePlayerGui::selectLivestream(std::vector &streamLis #endif bool resIO = false; - while (1) { + while (!streamList.empty()) { size_t i; for (i = 0; i < streamList.size(); ++i) { _info = &(streamList[i]);