Mercurial > audlegacy
changeset 4529:6cf91e97c6d5
prevent dead lock
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Wed, 30 Apr 2008 23:53:20 +0200 |
parents | 2638175099e0 |
children | d2fd41d3964e |
files | src/audacious/ui_fileinfo.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_fileinfo.c Wed Apr 30 14:36:50 2008 +0200 +++ b/src/audacious/ui_fileinfo.c Wed Apr 30 23:53:20 2008 +0200 @@ -949,8 +949,6 @@ gchar *path = g_strdup(entry->filename); Tuple *tuple = entry->tuple; - PLAYLIST_UNLOCK(playlist); - /* plugin is capable of updating tags. we need to bypass tuple cache. --eugene */ /* maybe code cleanup required... */ if (entry != NULL && @@ -1005,6 +1003,8 @@ if ((node = g_list_nth(playlist->entries, pos))) ui_fileinfo_show_entry(playlist, node->data); + + PLAYLIST_UNLOCK(playlist); } void @@ -1014,4 +1014,6 @@ if (playlist->entries && playlist->position) ui_fileinfo_show_entry(playlist, playlist->position); + + PLAYLIST_UNLOCK(playlist); }