[Slim-Checkins] r10651 - /trunk/server/Slim/Player/Source.pm
andy at svn.slimdevices.com
andy at svn.slimdevices.com
Fri Nov 10 08:54:04 PST 2006
Author: andy
Date: Fri Nov 10 08:54:04 2006
New Revision: 10651
URL: http://svn.slimdevices.com?rev=10651&view=rev
Log:
Switch to using the output buffer instead of decode buffer for triggering rebuffering
Modified:
trunk/server/Slim/Player/Source.pm
Modified: trunk/server/Slim/Player/Source.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Player/Source.pm?rev=10651&r1=10650&r2=10651&view=diff
==============================================================================
--- trunk/server/Slim/Player/Source.pm (original)
+++ trunk/server/Slim/Player/Source.pm Fri Nov 10 08:54:04 2006
@@ -643,19 +643,10 @@
return;
}
- my $fullness = $client->bufferFullness();
- my $songTime = songTime($client);
-
- # If we're near the end of a song, don't rebuffer, this can break crossfade mode
- my $song = playingSong($client);
- if ( my $duration = $song->{duration} ) {
- if ( $duration - $songTime <= 10 ) {
- return;
- }
- }
-
+ my $fullness = $client->outputBufferFullness();
+
# If the buffer is empty, rebuffer
- if ( !$fullness && $songTime > 30 ) {
+ if ( !$fullness ) {
$log->warn("Buffered audio dropped to $fullness bytes, pausing to rebuffer");
$client->pause();
More information about the checkins
mailing list