banshee r5181 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Streaming src/Core/Banshee.Services/Banshee.Database



Author: gburt
Date: Thu Apr  2 20:52:04 2009
New Revision: 5181
URL: http://svn.gnome.org/viewvc/banshee?rev=5181&view=rev

Log:
2009-04-02  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs: Patch from
	Alexander Kojevnikov working around issue in TagLib# where it
	miscalculates the bitrate for VBR tracks if the duration isn't set
	yet (BGO #562582)

	* src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs:
	Bump the metadata version to trigger a refresh.  Users of trunk will get
	yet another refresh, where users coming from 1.4 won't see a difference;
	they already were going to get a refresh.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs
   trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs

Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Streaming/StreamTagger.cs	Thu Apr  2 20:52:04 2009
@@ -134,8 +134,8 @@
             if (file != null) {
                 track.Uri = new SafeUri (file.Name);
                 track.MimeType = file.MimeType;
-                track.BitRate  = file.Properties.AudioBitrate;
                 track.Duration = file.Properties.Duration;
+                track.BitRate  = file.Properties.AudioBitrate;
                 
                 FindTrackMediaAttributes (track, file);
     

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs	Thu Apr  2 20:52:04 2009
@@ -54,7 +54,7 @@
         //       this version MUST be incremented and a migration method
         //       MUST be supplied to match the new version number
         protected const int CURRENT_VERSION = 30;
-        protected const int CURRENT_METADATA_VERSION = 5;
+        protected const int CURRENT_METADATA_VERSION = 6;
         
 #region Migration Driver
         



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]