Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/src


Modified Files:
        callbacks.c playlist.c 


Log Message:
bug fix on playlist clear

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/callbacks.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- callbacks.c 28 Feb 2004 04:52:53 -0000      1.10
+++ callbacks.c 28 Feb 2004 08:23:00 -0000      1.11
@@ -1,5 +1,5 @@
 /*
- * $Id: callbacks.c,v 1.10 2004/02/28 04:52:53 atmosphere Exp $
+ * $Id: callbacks.c,v 1.11 2004/02/28 08:23:00 atmosphere Exp $
  * vim:noexpandtab:sw=4:sts=4:ts=4
  */
 
@@ -588,7 +588,6 @@
 
        if (xmmscs_playback_current_id(e->xmms) == id) {
                xmmsc_playback_stop(e->xmms);
-               e->playlist->current_item = NULL;
        }
 
        pli = playlist_item_find_by_id(e->playlist, id);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/playlist.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- playlist.c  27 Feb 2004 21:55:33 -0000      1.5
+++ playlist.c  28 Feb 2004 08:23:00 -0000      1.6
@@ -1,5 +1,5 @@
 /*
- * $Id: playlist.c,v 1.5 2004/02/27 21:55:33 tsauerbeck Exp $
+ * $Id: playlist.c,v 1.6 2004/02/28 08:23:00 atmosphere Exp $
  * vim:noexpandtab:sw=4:sts=4:ts=4
  */
 
@@ -59,6 +59,7 @@
        }
 
        pl->duration = 0;
+       pl->current_item = NULL;
 }
 
 /**
@@ -74,6 +75,8 @@
        pl->duration -= playlist_item_duration_get(pli);
        pl->items = evas_list_remove(pl->items, pli);
        playlist_item_free(pli);
+       if(pl->current_item == pli)
+           pl->current_item = NULL;
 }
 
 /**




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to