Mercurial > mplayer.hg
changeset 9368:918248af048f
fuckin' 10l
author | pontscho |
---|---|
date | Sun, 09 Feb 2003 13:17:12 +0000 |
parents | f107fcf6fdea |
children | f7fc442571f7 |
files | mplayer.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sun Feb 09 13:13:00 2003 +0000 +++ b/mplayer.c Sun Feb 09 13:17:12 2003 +0000 @@ -3339,12 +3339,14 @@ play_tree_step = 1; } else if (eof == PT_UP_NEXT || eof == PT_UP_PREV) { eof = eof == PT_UP_NEXT ? 1 : -1; - if(play_tree_iter_up_step(playtree_iter,eof,0) == PLAY_TREE_ITER_ENTRY) { - eof = 1; - } else { - play_tree_iter_free(playtree_iter); - playtree_iter = NULL; - } + if ( playtree_iter ) { + if(play_tree_iter_up_step(playtree_iter,eof,0) == PLAY_TREE_ITER_ENTRY) { + eof = 1; + } else { + play_tree_iter_free(playtree_iter); + playtree_iter = NULL; + } + } } else { // NEXT PREV SRC eof = eof == PT_PREV_SRC ? -1 : 1; }