Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/src


Modified Files:
        callbacks.c 


Log Message:
hopefully formatting is right, fix a bug with adding a few files, start playing, 
clear, add files, play
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/callbacks.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- callbacks.c 29 Feb 2004 14:52:07 -0000      1.13
+++ callbacks.c 29 Feb 2004 17:06:12 -0000      1.14
@@ -1,5 +1,5 @@
 /*
- * $Id: callbacks.c,v 1.13 2004/02/29 14:52:07 atmosphere Exp $
+ * $Id: callbacks.c,v 1.14 2004/02/29 17:06:12 atmosphere Exp $
  * vim:noexpandtab:sw=4:sts=4:ts=4
  */
 
@@ -103,8 +103,8 @@
  */
 static void hilight_current_track(Euphoria *e) {
        PlayListItem *pli;
-
-       if (!(pli = e->playlist->current_item))
+       
+       if ((!e->playlist) || !(pli = e->playlist->current_item))
                return;
 
        if (pli->edje)
@@ -550,10 +550,10 @@
        /* we need to call this here, too, since the Edje might have been
         * created after the playback_currentid callback has been called
         */
-       hilight_current_track(e);
-
-       if (pli == e->playlist->current_item)
+       if (pli == e->playlist->current_item) {
+               hilight_current_track(e);
                ui_fill_track_info(e, pli);
+       }
 }
 
 XMMS_CB(playlist_mediainfo_id) {




-------------------------------------------------------
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