diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index aec9437dd..916215844 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -2561,8 +2561,10 @@ void CMoviePlayerGui::UpdatePosition() { usleep(10000); cnt++; + if (cnt > 5) + break; } - while ((!playback->GetPosition(position, duration)) || (cnt <= 5)); + while (!playback->GetPosition(position, duration)); if (duration > 100) file_prozent = (unsigned char) (position / (duration / 100));