From: <enl...@li...> - 2004-02-29 17:24:24
|
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) { |