# HG changeset patch # User Tomasz Mon # Date 1209592400 -7200 # Node ID 6cf91e97c6d5ecaafd959499c55c3e8d60c43acc # Parent 2638175099e07df573210398c18a853185e9f673 prevent dead lock diff -r 2638175099e0 -r 6cf91e97c6d5 src/audacious/ui_fileinfo.c --- 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); }