[banshee] Reset the stream position when file is encrypted
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Reset the stream position when file is encrypted
- Date: Tue, 3 Aug 2010 20:40:42 +0000 (UTC)
commit 43031b1aee6d9d5c4a70109c44b593be46d5ad60
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]