[MPlayer-cvslog] r36674 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Mon Jan 20 23:08:44 CET 2014
Author: reimar
Date: Mon Jan 20 23:08:44 2014
New Revision: 36674
Log:
mplayer.c: Minor loop simplification.
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Mon Jan 20 23:08:42 2014 (r36673)
+++ trunk/mplayer.c Mon Jan 20 23:08:44 2014 (r36674)
@@ -4121,13 +4121,12 @@ goto_next_file: // don't jump here afte
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
More information about the MPlayer-cvslog
mailing list