[Slim-Checkins] r8796 - /trunk/server/Slim/Player/Protocols/MMS.pm
andy at svn.slimdevices.com
andy at svn.slimdevices.com
Fri Aug 4 11:13:51 PDT 2006
Author: andy
Date: Fri Aug 4 11:13:50 2006
New Revision: 8796
URL: http://svn.slimdevices.com?rev=8796&view=rev
Log:
Fix WMA progress bar display
Modified:
trunk/server/Slim/Player/Protocols/MMS.pm
Modified: trunk/server/Slim/Player/Protocols/MMS.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Player/Protocols/MMS.pm?rev=8796&r1=8795&r2=8796&view=diff
==============================================================================
--- trunk/server/Slim/Player/Protocols/MMS.pm (original)
+++ trunk/server/Slim/Player/Protocols/MMS.pm Fri Aug 4 11:13:50 2006
@@ -359,19 +359,16 @@
}
# Set duration and progress bar if available and this is not a broadcast stream
- if ( my $secs = int( $wma->info('playtime_seconds' ) ) ) {
- if ( $wma->info('flags') && $wma->info('flags')->{'broadcast'} != 1 ) {
- if ( $secs > 0 ) {
- my %cacheEntry = (
- 'SECS' => $secs,
- );
-
- Slim::Music::Info::updateCacheEntry( $url, \%cacheEntry );
-
- # Set the duration so the progress bar appears
- $client->currentsongqueue()->[0]->{duration} = $secs;
-
- $::d_directstream && msg("Setting duration to $secs seconds from WMA metadata\n");
+ if ( $wma->info('playtime_seconds') ) {
+ if ( my $secs = int( $wma->info('playtime_seconds') ) ) {
+ if ( $wma->info('flags') && $wma->info('flags')->{'broadcast'} != 1 ) {
+ if ( $secs > 0 ) {
+
+ $client->streamingProgressBar( {
+ 'url' => $url,
+ 'duration' => $secs,
+ } );
+ }
}
}
}
More information about the checkins
mailing list