27 lines
1018 B
Diff
27 lines
1018 B
Diff
diff -ru audacious-plugins-1.5.1.orig/src/mtp_up/mtp.c audacious-plugins-1.5.1/src/mtp_up/mtp.c
|
|
--- audacious-plugins-1.5.1.orig/src/mtp_up/mtp.c 2009-01-02 21:32:23.000000000 +0100
|
|
+++ audacious-plugins-1.5.1/src/mtp_up/mtp.c 2009-01-02 21:31:53.000000000 +0100
|
|
@@ -161,7 +161,6 @@
|
|
return NULL;
|
|
}
|
|
filesize = (uint64_t) sb.st_size;
|
|
- parent_id = mtp_device->default_music_folder;
|
|
|
|
/* track metadata*/
|
|
tr = LIBMTP_new_track_t();
|
|
@@ -192,12 +191,12 @@
|
|
|
|
g_free(from_path);
|
|
g_free(tmp);
|
|
- parent_id = mtp_device->default_music_folder;
|
|
|
|
#if DEBUG
|
|
g_print("Uploading track '%s'\n",filename);
|
|
#endif
|
|
- ret = LIBMTP_Send_Track_From_File(mtp_device, filename , gentrack, NULL , NULL, parent_id);
|
|
+ gentrack->parent_id = mtp_device->default_music_folder;
|
|
+ ret = LIBMTP_Send_Track_From_File(mtp_device, filename , gentrack, NULL , NULL);
|
|
LIBMTP_destroy_track_t(gentrack);
|
|
if (ret == 0)
|
|
g_print("Track upload finished!\n");
|