Mercurial > audlegacy
diff src/audacious/playlist.c @ 2670:84a10fce92a1 trunk
[svn] - playlist_set_info() does not change the playlist and shouldn't block
author | nenolod |
---|---|
date | Tue, 10 Apr 2007 11:25:39 -0700 |
parents | 0b4949cad842 |
children | e9b379528fbc |
line wrap: on
line diff
--- a/src/audacious/playlist.c Tue Apr 10 11:20:21 2007 -0700 +++ b/src/audacious/playlist.c Tue Apr 10 11:25:39 2007 -0700 @@ -1047,8 +1047,6 @@ { Playlist *playlist = playlist_get_active(); - PLAYLIST_LOCK(playlist->mutex); - g_return_if_fail(playlist != NULL); if (playlist->position) { @@ -1065,8 +1063,6 @@ } } - PLAYLIST_UNLOCK(playlist->mutex); - playlist_recalc_total_time(playlist); mainwin_set_song_info(rate, freq, nch); @@ -1079,8 +1075,6 @@ playlist_set_info(Playlist * playlist, const gchar * title, gint length, gint rate, gint freq, gint nch) { - PLAYLIST_LOCK(playlist->mutex); - g_return_if_fail(playlist != NULL); if (playlist->position) { @@ -1089,8 +1083,6 @@ playlist->position->length = length; } - PLAYLIST_UNLOCK(playlist->mutex); - playlist_recalc_total_time(playlist); mainwin_set_song_info(rate, freq, nch);