Mercurial > mplayer.hg
diff playtree.c @ 4960:d3d05270c09d
workaround for gui a short time.
author | pontscho |
---|---|
date | Wed, 06 Mar 2002 23:27:20 +0000 |
parents | e370779ac77f |
children | 5da7b1522a9f |
line wrap: on
line diff
--- a/playtree.c Wed Mar 06 23:16:33 2002 +0000 +++ b/playtree.c Wed Mar 06 23:27:20 2002 +0000 @@ -441,7 +441,8 @@ void play_tree_iter_free(play_tree_iter_t* iter) { - + + if ( !iter ) return; #ifdef MP_DEBUG assert(iter != NULL); #endif @@ -460,6 +461,7 @@ play_tree_iter_step(play_tree_iter_t* iter, int d,int with_nodes) { play_tree_t* pt; + if ( !iter ) return PLAY_TREE_ITER_ERROR; #ifdef MP_DEBUG assert(iter != NULL); assert(iter->root != NULL);