decoder/sidplay: simplify seek loop
This commit is contained in:
parent
f9a64d24bf
commit
11ba44870b
@ -376,12 +376,9 @@ sidplay_file_decode(Decoder &decoder, Path path_fs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ignore data until target time is reached */
|
/* ignore data until target time is reached */
|
||||||
while(data_time<target_time) {
|
while (data_time < target_time &&
|
||||||
nbytes=player.play(buffer, ARRAY_SIZE(buffer));
|
player.play(buffer, ARRAY_SIZE(buffer)) > 0)
|
||||||
if(nbytes==0)
|
|
||||||
break;
|
|
||||||
data_time = player.time();
|
data_time = player.time();
|
||||||
}
|
|
||||||
|
|
||||||
decoder_command_finished(decoder);
|
decoder_command_finished(decoder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user