[Mplayer-cvslog] CVS: main playtree.c,1.9,1.10

Zoltan Ponekker pontscho at mplayer.dev.hu
Thu Mar 7 00:27:22 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv10107

Modified Files:
	playtree.c 
Log Message:
workaround for gui a short time.

Index: playtree.c
===================================================================
RCS file: /cvsroot/mplayer/main/playtree.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- playtree.c	21 Feb 2002 13:11:31 -0000	1.9
+++ playtree.c	6 Mar 2002 23:27:20 -0000	1.10
@@ -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);




More information about the MPlayer-cvslog mailing list