Initialize a song's properties to an empty hash.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 26 Aug 2007 15:32:31 +0000 (17:32 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 26 Aug 2007 15:32:31 +0000 (17:32 +0200)
Seems sometimes we try to access the properties before we got them
from the daemon.

lib/playlist_item.rb

index 91b5bea..5b89ea4 100644 (file)
@@ -13,7 +13,7 @@ class PlaylistItem
                @selected = false
                @hilighted = false
 
-               @props = nil
+               @props = {}
 
                @xmms.medialib_get_info(id).notifier do |res|
                        self.properties = res.value