]> git.pld-linux.org Git - packages/audacious-plugins.git/blob - audacious-plugins-libmtp.patch
- fix for libmtp 0.3.0 API
[packages/audacious-plugins.git] / audacious-plugins-libmtp.patch
1 diff -ur audacious-plugins-1.5.1.orig/src/mtp_up/mtp.c audacious-plugins-1.5.1/src/mtp_up/mtp.c
2 --- audacious-plugins-1.5.1.orig/src/mtp_up/mtp.c       2008-05-24 00:44:20.000000000 +0200
3 +++ audacious-plugins-1.5.1/src/mtp_up/mtp.c    2008-08-04 09:38:35.000000000 +0200
4 @@ -193,11 +193,12 @@
5      g_free(from_path);
6      g_free(tmp);
7      parent_id = mtp_device->default_music_folder;
8 +    gentrack->parent_id = parent_id;
9  
10  #if DEBUG
11      g_print("Uploading track '%s'\n",filename);
12  #endif
13 -    ret = LIBMTP_Send_Track_From_File(mtp_device, filename , gentrack, NULL , NULL, parent_id);
14 +    ret = LIBMTP_Send_Track_From_File(mtp_device, filename , gentrack, NULL , NULL);
15      LIBMTP_destroy_track_t(gentrack);
16      if (ret == 0) 
17          g_print("Track upload finished!\n");
This page took 0.053012 seconds and 3 git commands to generate.