[banshee] Fix playlists for some MTP devices (BGO #590342)



commit 44b3b563a368851657f8b3d3ad2ff934df31bccd
Author: Nyall Dawson <nyall zombiepigs net>
Date:   Mon Oct 5 11:56:40 2009 -0700

    Fix playlists for some MTP devices (BGO #590342)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 src/Libraries/Mtp/Mtp/MtpDevice.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Mtp/Mtp/MtpDevice.cs b/src/Libraries/Mtp/Mtp/MtpDevice.cs
index 60b2437..bca0817 100644
--- a/src/Libraries/Mtp/Mtp/MtpDevice.cs
+++ b/src/Libraries/Mtp/Mtp/MtpDevice.cs
@@ -136,8 +136,13 @@ namespace Mtp
 			{
 				if (f.FolderId == this.device.default_album_folder)
 					albumFolder = f;
-				else if (f.FolderId == device.default_music_folder)
+				else if (f.FolderId == device.default_music_folder) {
 					musicFolder = f;
+					// Fix for devices that don't have an explicit playlist folder (BGO #590342)
+					if (device.default_playlist_folder == 0) {
+						playlistFolder = f;
+					}
+				}
 				else if (f.FolderId == device.default_organizer_folder)
 					organizerFolder = f;
 				else if (f.FolderId == device.default_picture_folder)



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