Another weird bug: Somehow this component interferes with metadata from my Vorbis stream. With the component, I get no artist/title metadata (but oddly a couple other fields like DISCNUMBER). Without it, everything works as expected.
I'm not too surprised, it is a side effect of the implementation of a custom metadb_display_field_provider that is the cause of this. It processes a few standard fields for display.
I suspect you have one also, and the two interfere.
When the item is not managed by my plugin, my custom metadb_display_field_provider class just call titleformat_hook_impl_file_info::process_field() (see code below) .
Instead it should let foobar call other providers but I don't know if it is possible (returning false in process_field() will just leave the fields unprocessed...).
Btw 0.81 released (first post) now able to play all audio formats .
bool process_field(t_uint32 index, metadb_handle * handle, titleformat_text_out * out) {
string8 field;
get_field_name(index, field);
const file_info *finfo = NULL;
if(handle->get_info_async_locked(finfo)) {
const char *codec = finfo->info_get("codec");
if(codec && strcmp(codec, "PCM") == 0) {
browser_window::get_instance()->get_file_info(handle, finfo);
}
} else {
browser_window::get_instance()->get_file_info(handle, finfo);
}
if(finfo) {
bool flag;
titleformat_hook_impl_file_info hook(handle->get_location(), finfo);
hook.process_field(out, field, field.get_length(), flag);
}
return true;
}