23 #if defined(MEDIA_HUB_HAVE_HYBRIS_MEDIA_COMPAT_LAYER) 24 #include <hybris/media/media_codec_layer.h> 28 typedef std::pair<media::Player::PlayerKey, std::weak_ptr<media::HybrisClientDeathObserver>> Holder;
33 auto holder =
static_cast<Holder*
>(context);
39 if (
auto sp = holder->second.lock())
41 sp->client_with_key_died(holder->first);
55 media::HybrisClientDeathObserver::HybrisClientDeathObserver()
70 return client_with_key_died;
72 #else // MEDIA_HUB_HAVE_HYBRIS_MEDIA_COMPAT_LAYER 77 throw std::logic_error
79 "Hybris-based death observer implementation not supported on this platform." 82 #endif // MEDIA_HUB_HAVE_HYBRIS_MEDIA_COMPAT_LAYER