[banshee] Dap.Mtp: Fix build



commit 32acdba17a48f2019122293d388fe191bae3b5e0
Author: Andres G. Aragoneses <knocte gmail com>
Date:   Thu Dec 22 13:25:35 2011 +0000

    Dap.Mtp: Fix build
    
    Recent refactoring by Alex [1] wasn't 100% correct
    because it broke the build.
    
    [1] http://git.gnome.org/browse/banshee/commit/?id=3db01454717669b1c7903a1ae07b8db9cef84f11

 .../Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs b/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
index 74591ef..3430e30 100644
--- a/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
+++ b/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs
@@ -177,7 +177,7 @@ namespace Banshee.Dap.Mtp
 
                 foreach (Track mtp_track in files) {
                     int track_id;
-                    if ((track_id = DatabaseTrackInfo.GetTrackIdForUri (MtpTrackInfo.GetPathFromMtpTrack (mtp_track), DbId)) > 0) {
+                    if ((track_id = DatabaseTrackInfo.GetTrackIdForUri (MtpTrackInfo.GetPathFromMtpTrack (mtp_track), new int [] { DbId } )) > 0) {
                         track_map[track_id] = mtp_track;
                     } else {
                         MtpTrackInfo track = new MtpTrackInfo (mtp_device, mtp_track);



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