diff -r -u banshee-1-1.2.1.old/src/Libraries/Mtp/Mtp/Album.cs banshee-1-1.2.1/src/Libraries/Mtp/Mtp/Album.cs --- banshee-1-1.2.1.old/src/Libraries/Mtp/Mtp/Album.cs 2008-05-21 09:17:47.000000000 -0500 +++ banshee-1-1.2.1/src/Libraries/Mtp/Mtp/Album.cs 2008-09-02 00:23:21.000000000 -0500 @@ -131,7 +131,7 @@ if (saved) { saved = LIBMTP_Update_Album (device.Handle, ref album) == 0; } else { - saved = LIBMTP_Create_New_Album (device.Handle, ref album, 0) == 0; + saved = LIBMTP_Create_New_Album (device.Handle, ref album) == 0; } if (album.tracks != IntPtr.Zero) { @@ -190,7 +190,7 @@ public static Album GetById (MtpDevice device, uint id) { - IntPtr ptr = Album.LIBMTP_Get_Album (device.Handle, id); + IntPtr ptr = Album.LIBMTP_Get_Album (device.Handle); if (ptr == IntPtr.Zero) { return null; } else { @@ -208,10 +208,10 @@ internal static extern IntPtr LIBMTP_Get_Album_List (MtpDeviceHandle handle); // LIBMTP_album_t* [DllImport("libmtp.dll")] - internal static extern IntPtr LIBMTP_Get_Album (MtpDeviceHandle handle, uint albumId); // LIBMTP_album_t* + internal static extern IntPtr LIBMTP_Get_Album (MtpDeviceHandle handle); // LIBMTP_album_t* [DllImport("libmtp.dll")] - internal static extern int LIBMTP_Create_New_Album (MtpDeviceHandle handle, ref AlbumStruct album, uint parentId); + internal static extern int LIBMTP_Create_New_Album (MtpDeviceHandle handle, ref AlbumStruct album); [DllImport("libmtp.dll")] internal static extern int LIBMTP_Update_Album (MtpDeviceHandle handle, ref AlbumStruct album); diff -r -u banshee-1-1.2.1.old/src/Libraries/Mtp/Mtp/Track.cs banshee-1-1.2.1/src/Libraries/Mtp/Mtp/Track.cs --- banshee-1-1.2.1.old/src/Libraries/Mtp/Mtp/Track.cs 2008-04-23 14:20:58.000000000 -0500 +++ banshee-1-1.2.1/src/Libraries/Mtp/Mtp/Track.cs 2008-09-02 00:23:21.000000000 -0500 @@ -195,7 +195,7 @@ internal static void SendTrack (MtpDeviceHandle handle, string path, ref TrackStruct metadata, ProgressFunction callback, IntPtr data, uint parent) { - if (LIBMTP_Send_Track_From_File (handle, path, ref metadata, callback, data, parent) != 0) + if (LIBMTP_Send_Track_From_File (handle, path, ref metadata, callback, data) != 0) { LibMtpException.CheckErrorStack (handle); throw new LibMtpException (ErrorCode.General, "Could not upload the track"); @@ -227,7 +227,7 @@ private static extern int LIBMTP_Get_Track_To_File (MtpDeviceHandle handle, uint trackId, string path, ProgressFunction callback, IntPtr data); [DllImport("libmtp.dll")] - private static extern int LIBMTP_Send_Track_From_File (MtpDeviceHandle handle, string path, ref TrackStruct track, ProgressFunction callback, IntPtr data, uint parentHandle); + private static extern int LIBMTP_Send_Track_From_File (MtpDeviceHandle handle, string path, ref TrackStruct track, ProgressFunction callback, IntPtr data); [DllImport("libmtp.dll")] private static extern int LIBMTP_Update_Track_Metadata (MtpDeviceHandle handle, ref TrackStruct metadata);