[banshee/stable-2.2] AudiobookLibrarySource: Fix crash when adding tracks (bgo#662906)
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-2.2] AudiobookLibrarySource: Fix crash when adding tracks (bgo#662906)
- Date: Tue, 1 Nov 2011 15:59:40 +0000 (UTC)
commit 8377bd577c5f5e099239bc148885925e32d7544d
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Tue Nov 1 16:46:22 2011 +0100
AudiobookLibrarySource: Fix crash when adding tracks (bgo#662906)
We need to cast the TrackMediaAttributes enum value as an int, otherwise
it is handled as string and the query fails.
.../Banshee.Audiobook/AudiobookLibrarySource.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
index 0868504..24299cf 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
@@ -124,7 +124,7 @@ namespace Banshee.Audiobook
ServiceManager.DbConnection.Execute (
"UPDATE CoreTracks SET Attributes = Attributes | ? WHERE PrimarySourceID = ?",
- TrackMediaAttributes.AudioBook, this.DbId);
+ (int)TrackMediaAttributes.AudioBook, this.DbId);
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]