about summary refs log tree commit homepage
path: root/lib/dtas/player.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-09 07:45:22 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-09 07:45:22 +0000
commit0a2c2084eaca34fb869ee338315e91cbf809212f (patch)
tree402631a9bdfb47ef8c9b67804331191bac44f38c /lib/dtas/player.rb
parent137e36e346a4641850183684ab136fe781af121a (diff)
downloaddtas-0a2c2084eaca34fb869ee338315e91cbf809212f.tar.gz
tracklist: next_track -> advance_track
This is a more accurate depiction of what happens,
and we'll implement "next" and "previous" commands in the future.
Diffstat (limited to 'lib/dtas/player.rb')
-rw-r--r--lib/dtas/player.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb
index 8926e0b..5e78d8e 100644
--- a/lib/dtas/player.rb
+++ b/lib/dtas/player.rb
@@ -260,7 +260,7 @@ class DTAS::Player # :nodoc:
   end
 
   def _next
-    @queue.shift || @tl.next_track
+    @queue.shift || @tl.advance_track
   end
 
   def sink_death(sink, status)
@@ -353,7 +353,7 @@ class DTAS::Player # :nodoc:
 
     # don't get stuck in an infinite loop if @tl.repeat==true and we can't
     # decode anything (FS errors, sox uninstalled, etc...)
-    while path = @tl.next_track(false)
+    while path = @tl.advance_track(false)
       @sources.each do |src|
         rv = src.try(path) and return rv
       end