[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bongo-patches] Make `bongo-default-player-seek-by' deal with `bongo-pla
From: |
Daniel Brockman |
Subject: |
[bongo-patches] Make `bongo-default-player-seek-by' deal with `bongo-player-elapsed-time' returning nil |
Date: |
Sat, 28 Apr 2007 01:40:30 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) |
Make `bongo-default-player-seek-by' deal with
`bongo-player-elapsed-time' returning nil.
diff -rN -u old-bongo/bongo.el new-bongo/bongo.el
--- old-bongo/bongo.el 2007-04-28 01:40:24.000000000 +0200
+++ new-bongo/bongo.el 2007-04-28 01:40:24.000000000 +0200
@@ -5219,9 +5219,10 @@
(bongo-player-get player 'seeking-supported))
(defun bongo-default-player-seek-by (player n)
- "Signal an error explaining that PLAYER does not support seeking.
-This is a dummy implementation, so N is ignored."
- (bongo-player-seek-to player (+ (bongo-player-elapsed-time player) n)))
+ "Tell PLAYER to seek by N seconds (backwards if N is negative).
+If PLAYER does not support seeking, signal an error."
+ (bongo-player-seek-to player
+ (+ (or (bongo-player-elapsed-time player) 0) n)))
(defun bongo-default-player-seek-to (player n)
"Signal an error explaining that PLAYER does not support seeking.
--
Daniel Brockman <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bongo-patches] Make `bongo-default-player-seek-by' deal with `bongo-player-elapsed-time' returning nil,
Daniel Brockman <=