Skip to content

Commit

Permalink
[playback] Dont busy loop when there is no audio track
Browse files Browse the repository at this point in the history
  • Loading branch information
mean committed Dec 4, 2016
1 parent 0cc328c commit e6482ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion avidemux/common/gui_play.cpp
Expand Up @@ -294,9 +294,13 @@ bool GUIPlayback::run(void)
{
if(stop_req)
break;

if(delta>10)
{
audioPump(true);
if(playbackAudio)
audioPump(true);
else
ADM_usleep(10*1000);
}else
audioPump(false);

Expand Down

0 comments on commit e6482ab

Please sign in to comment.