Mercurial > audlegacy
diff src/audacious/playlist.c @ 2480:bb2f191895ce trunk
[svn] - fixed crash when skipping to next song with an empty playlist
author | marvin |
---|---|
date | Tue, 06 Feb 2007 06:06:58 -0800 |
parents | 5e8526a4f554 |
children | c5075a79f1aa |
line wrap: on
line diff
--- a/src/audacious/playlist.c Mon Feb 05 17:54:57 2007 -0800 +++ b/src/audacious/playlist.c Tue Feb 06 06:06:58 2007 -0800 @@ -1044,8 +1044,7 @@ { GList *plist_pos_list; gboolean restart_playing = FALSE; - - if (!playlist) + if (!playlist_get_length(playlist)) return; PLAYLIST_LOCK(playlist->mutex); @@ -1103,7 +1102,7 @@ GList *plist_pos_list; gboolean restart_playing = FALSE; - if (!playlist) + if (!playlist_get_length(playlist)) return; PLAYLIST_LOCK(playlist->mutex);