MT#55283 check validity of cached entry

closes #2179

Change-Id: I4e4dac4bac150960736ef786f67f578b3fc24d4c
pull/2194/head
Richard Fuchs 1 month ago
parent cfef09b355
commit b9bafb2147

@ -747,9 +747,13 @@ static bool media_player_cache_get_entry(struct media_player *mp,
= t_hash_table_lookup(media_player_cache, &lookup);
if (entry) {
obj_hold(entry); // ref in mp->cache_entry
media_player_cached_reader_start(mp, codec_set);
return true;
if (entry->coder.handler) {
obj_hold(entry); // ref in mp->cache_entry
media_player_cached_reader_start(mp, codec_set);
return true;
}
// cache entry exists but failed to initialised. we can try again.
t_hash_table_remove(media_player_cache, &lookup);
}
// initialise object

Loading…
Cancel
Save