Lines Matching refs:found_album
95 LIBMTP_album_t *found_album = NULL; in add_track_to_album() local
110 found_album = album; in add_track_to_album()
112 found_album->next = NULL; in add_track_to_album()
122 if (found_album != NULL) { in add_track_to_album()
125 tracks = (uint32_t *)malloc((found_album->no_tracks+1) * sizeof(uint32_t)); in add_track_to_album()
126 printf("Album \"%s\" found: updating...\n", found_album->name); in add_track_to_album()
131 found_album->no_tracks++; in add_track_to_album()
132 if (found_album->tracks != NULL) { in add_track_to_album()
133 memcpy(tracks, found_album->tracks, found_album->no_tracks * sizeof(uint32_t)); in add_track_to_album()
134 free(found_album->tracks); in add_track_to_album()
136 tracks[found_album->no_tracks-1] = trackmeta->item_id; in add_track_to_album()
137 found_album->tracks = tracks; in add_track_to_album()
138 ret = LIBMTP_Update_Album(device, found_album); in add_track_to_album()
139 LIBMTP_destroy_album_t(found_album); in add_track_to_album()