[banshee/gio-hardware] Reset the stream position when file is encrypted
- From: Alex Launi <alexlauni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gio-hardware] Reset the stream position when file is encrypted
- Date: Fri, 13 Aug 2010 15:22:31 +0000 (UTC)
commit 57b8e6d3c2045f018b38b8ed548bb3028b45603f
Author: Aaron Bockover <abockover novell com>
Date: Tue Aug 3 16:39:55 2010 -0400
Reset the stream position when file is encrypted
Fixes a regression introduced by the previous commit supporting
unencrypted amz files.
.../Banshee.AmazonMp3/AmzXspfPlaylist.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmzXspfPlaylist.cs b/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmzXspfPlaylist.cs
index d0d89ab..f229bdb 100644
--- a/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmzXspfPlaylist.cs
+++ b/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmzXspfPlaylist.cs
@@ -84,6 +84,8 @@ namespace Banshee.AmazonMp3
return;
}
+ stream.Seek (0, SeekOrigin.Begin);
+
var crypto_service = new DESCryptoServiceProvider () {
Key = amz_key,
IV = amz_iv,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]