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 91b5bea1024bc8e86566c29772378a9fd1394e29..5b89ea44ba8eb3a7c078b406a706f238f8af89a2 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