[banshee] TranscoderService: Update the FileSize metadata for the transcoded track
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] TranscoderService: Update the FileSize metadata for the transcoded track
- Date: Wed, 17 Aug 2011 16:02:43 +0000 (UTC)
commit 31c1a5494333793bbf128f9f5a47bd7a104d7288
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Wed Aug 17 17:58:22 2011 +0200
TranscoderService: Update the FileSize metadata for the transcoded track
Apparently some device use the FileSize track metadata to calculate the
storage used, so we need to make sure it's updated for transcoded files.
Fixes bgo#647202.
Original patch by Michael Alan Dorman.
.../Banshee.MediaEngine/TranscoderService.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.MediaEngine/TranscoderService.cs b/src/Core/Banshee.Services/Banshee.MediaEngine/TranscoderService.cs
index 5531297..275254c 100644
--- a/src/Core/Banshee.Services/Banshee.MediaEngine/TranscoderService.cs
+++ b/src/Core/Banshee.Services/Banshee.MediaEngine/TranscoderService.cs
@@ -225,6 +225,7 @@ namespace Banshee.MediaEngine
UserJob.Completed++;
args.Track.MimeType = current_context.Config.Profile.MimeTypes[0];
+ args.Track.FileSize = Banshee.IO.File.GetSize (current_context.OutUri);
current_context.Handler (args.Track, current_context.OutUri);
ProcessQueue ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]