CODE
album_art_data_ptr destdata = album_art_data_impl::g_create(/* memory buffer */, /* the size of memory buffer */);
service_ptr_t<album_art_editor> editor;
if (album_art_editor::g_get_interface(editor, victimpath)) {
album_art_editor_instance_ptr artwork = editor->open(0, victimpath, abortcallback);
artwork->set(album_art_ids::cover_front, destdata, abortcallback);
}
service_ptr_t<album_art_editor> editor;
if (album_art_editor::g_get_interface(editor, victimpath)) {
album_art_editor_instance_ptr artwork = editor->open(0, victimpath, abortcallback);
artwork->set(album_art_ids::cover_front, destdata, abortcallback);
}
I noticed that the "if" branch is not taken. Although the comment of album_art_editor states I need to register my own implementation, I thought foobar2000 already implemented album_art_editor for mp3 files. Could somebody give me any idea why my code is wrong? All I want is to embed a cover image in mp3 files.
Thanks!
