Skip to content

Commit

Permalink
Synced with xmmsclient API updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
tilman2 committed Aug 23, 2007
1 parent 42ba416 commit 37dca50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/euphoria
Expand Up @@ -110,7 +110,7 @@ class Euphoria
end
=end

handle_current_pos(@xmms.playlist_current_pos.wait)
handle_current_pos(@xmms.playlist.current_pos.wait)
end

def show
Expand Down
12 changes: 7 additions & 5 deletions lib/playlist.rb
Expand Up @@ -12,12 +12,14 @@ def initialize(xmms, on_cur_item_changed)
@eet = nil
@container = nil

@xmms.playlist_list.notifier { |res| push(*res.value) }
@xmms.playlist.entries.notifier { |res| push(*res.value) }

begin
@current_pos = @xmms.playlist_current_pos.wait.value
rescue Xmms::Result::ValueError
@current_pos = nil
@xmms.playlist.current_pos.notifier do |res|
begin
@current_pos = res.value
rescue Xmms::Result::ValueError
@current_pos = nil
end
end

@xmms.broadcast_playlist_current_pos.notifier do |res|
Expand Down

0 comments on commit 37dca50

Please sign in to comment.