Mercurial > mplayer.hg
changeset 36578:dd4ceae6520a
mplayer.c: Minor loop simplification.
author | reimar |
---|---|
date | Mon, 20 Jan 2014 22:08:44 +0000 |
parents | 5fed1c3bfd39 |
children | c11abb032606 |
files | mplayer.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Mon Jan 20 22:08:42 2014 +0000 +++ b/mplayer.c Mon Jan 20 22:08:44 2014 +0000 @@ -4121,13 +4121,12 @@ while (mpctx->playtree_iter != NULL) { filename = play_tree_iter_get_file(mpctx->playtree_iter, mpctx->eof); - if (filename == NULL) { - if (play_tree_iter_step(mpctx->playtree_iter, mpctx->eof, 0) != PLAY_TREE_ITER_ENTRY) { - play_tree_iter_free(mpctx->playtree_iter); - mpctx->playtree_iter = NULL; - } - } else + if (filename) break; + if (play_tree_iter_step(mpctx->playtree_iter, mpctx->eof, 0) != PLAY_TREE_ITER_ENTRY) { + play_tree_iter_free(mpctx->playtree_iter); + mpctx->playtree_iter = NULL; + } } #ifdef CONFIG_GUI