# HG changeset patch # User ib # Date 1355106303 0 # Node ID 5cccc59f4c5b4b67fa403c0a4e222e854bac8de0 # Parent 29f2de5e63d6c16f4e8470d6ed75f424a257eee3 Calculate number of playlist tracks in any case. We won't reset to zero for an empty list else. diff -r 29f2de5e63d6 -r 5cccc59f4c5b gui/dialog/playlist.c --- a/gui/dialog/playlist.c Mon Dec 10 02:08:43 2012 +0000 +++ b/gui/dialog/playlist.c Mon Dec 10 02:25:03 2012 +0000 @@ -236,9 +236,9 @@ guiInfo.PlaylistNext = (curr.name ? False : True); guiInfo.Track = 1; } - guiInfo.Tracks = (int) listMgr( PLAYLIST_ITEM_GET_POS,0 ); } else if (isPlaylistStreamtype && !guiInfo.Playing) uiUnsetFile(); + guiInfo.Tracks = (int) listMgr( PLAYLIST_ITEM_GET_POS,0 ); free(curr.path); free(curr.name); }