Mercurial > mplayer.hg
comparison mplayer.c @ 36578:dd4ceae6520a
mplayer.c: Minor loop simplification.
author | reimar |
---|---|
date | Mon, 20 Jan 2014 22:08:44 +0000 |
parents | 5fed1c3bfd39 |
children | c11abb032606 |
comparison
equal
deleted
inserted
replaced
36577:5fed1c3bfd39 | 36578:dd4ceae6520a |
---|---|
4119 if (mpctx->eof == 0) | 4119 if (mpctx->eof == 0) |
4120 mpctx->eof = 1; | 4120 mpctx->eof = 1; |
4121 | 4121 |
4122 while (mpctx->playtree_iter != NULL) { | 4122 while (mpctx->playtree_iter != NULL) { |
4123 filename = play_tree_iter_get_file(mpctx->playtree_iter, mpctx->eof); | 4123 filename = play_tree_iter_get_file(mpctx->playtree_iter, mpctx->eof); |
4124 if (filename == NULL) { | 4124 if (filename) |
4125 if (play_tree_iter_step(mpctx->playtree_iter, mpctx->eof, 0) != PLAY_TREE_ITER_ENTRY) { | |
4126 play_tree_iter_free(mpctx->playtree_iter); | |
4127 mpctx->playtree_iter = NULL; | |
4128 } | |
4129 } else | |
4130 break; | 4125 break; |
4126 if (play_tree_iter_step(mpctx->playtree_iter, mpctx->eof, 0) != PLAY_TREE_ITER_ENTRY) { | |
4127 play_tree_iter_free(mpctx->playtree_iter); | |
4128 mpctx->playtree_iter = NULL; | |
4129 } | |
4131 } | 4130 } |
4132 | 4131 |
4133 #ifdef CONFIG_GUI | 4132 #ifdef CONFIG_GUI |
4134 if (use_gui) | 4133 if (use_gui) |
4135 if (guiInfo.NewPlay != GUI_FILE_SAME) | 4134 if (guiInfo.NewPlay != GUI_FILE_SAME) |