mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- movieplayer: fix possible endless loop in UpdatePosition() function
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -2561,8 +2561,10 @@ void CMoviePlayerGui::UpdatePosition()
|
|||||||
{
|
{
|
||||||
usleep(10000);
|
usleep(10000);
|
||||||
cnt++;
|
cnt++;
|
||||||
|
if (cnt > 5)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
while ((!playback->GetPosition(position, duration)) || (cnt <= 5));
|
while (!playback->GetPosition(position, duration));
|
||||||
|
|
||||||
if (duration > 100)
|
if (duration > 100)
|
||||||
file_prozent = (unsigned char) (position / (duration / 100));
|
file_prozent = (unsigned char) (position / (duration / 100));
|
||||||
|
Reference in New Issue
Block a user