From cca6526b2f2f7415841c6aa698a8c221a26962bd 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 --- 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]);