Lines Matching refs:trackmeta

92 static int add_track_to_album(LIBMTP_album_t *albuminfo, LIBMTP_track_t *trackmeta)  in add_track_to_album()  argument
136 tracks[found_album->no_tracks-1] = trackmeta->item_id; in add_track_to_album()
144 *trackid = trackmeta->item_id; in add_track_to_album()
147 albuminfo->storage_id = trackmeta->storage_id; in add_track_to_album()
172 LIBMTP_track_t *trackmeta; in sendtrack_function() local
178 trackmeta = LIBMTP_new_track_t(); in sendtrack_function()
195 trackmeta->filetype = find_filetype (from_path); in sendtrack_function()
196 if (!LIBMTP_FILETYPE_IS_TRACK(trackmeta->filetype)) { in sendtrack_function()
197 … printf("Not a valid track codec: \"%s\"\n", LIBMTP_Get_Filetype_Description(trackmeta->filetype)); in sendtrack_function()
268 printf("Codec: %s\n", LIBMTP_Get_Filetype_Description(trackmeta->filetype)); in sendtrack_function()
271 trackmeta->title = strdup(ptitle); in sendtrack_function()
275 trackmeta->album = strdup(palbum); in sendtrack_function()
284 trackmeta->artist = strdup(partist); in sendtrack_function()
291 trackmeta->composer = strdup(pcomposer); in sendtrack_function()
296 trackmeta->genre = strdup(pgenre); in sendtrack_function()
304 trackmeta->date = strdup(tmp); in sendtrack_function()
308 trackmeta->tracknumber = tracknum; in sendtrack_function()
313 trackmeta->duration = length * 1000; in sendtrack_function()
317 trackmeta->filename = strdup(filename); in sendtrack_function()
319 trackmeta->filesize = filesize; in sendtrack_function()
320 trackmeta->parent_id = parent_id; in sendtrack_function()
346 trackmeta->storage_id = storageid; in sendtrack_function()
350 ret = LIBMTP_Send_Track_From_File(device, from_path, trackmeta, progress, NULL); in sendtrack_function()
357 printf("New track ID: %d\n", trackmeta->item_id); in sendtrack_function()
362 ret = add_track_to_album(albuminfo, trackmeta); in sendtrack_function()
365 LIBMTP_destroy_track_t(trackmeta); in sendtrack_function()