Lines Matching refs:found_album
94 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()
118 if (found_album == NULL) { in add_track_to_album()
125 found_album = album; in add_track_to_album()
127 found_album->next = NULL; in add_track_to_album()
134 if (found_album != NULL) { in add_track_to_album()
137 tracks = (uint32_t *)malloc((found_album->no_tracks+1) * sizeof(uint32_t)); in add_track_to_album()
138 printf("Album \"%s\" found: updating...\n", found_album->name); in add_track_to_album()
143 found_album->no_tracks++; in add_track_to_album()
144 if (found_album->tracks != NULL) { in add_track_to_album()
145 memcpy(tracks, found_album->tracks, found_album->no_tracks * sizeof(uint32_t)); in add_track_to_album()
146 free(found_album->tracks); in add_track_to_album()
148 tracks[found_album->no_tracks-1] = trackmeta->item_id; in add_track_to_album()
149 found_album->tracks = tracks; in add_track_to_album()
150 ret = LIBMTP_Update_Album(device, found_album); in add_track_to_album()