Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4da6c62 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Notify software service

Bug: 129426284
Test: manual
Change-Id: Ie938f73d79574bcfff5818766ded58b280136110
parent ea58eede
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -776,6 +776,17 @@ sp<MediaPlayerBase> MediaPlayerService::Client::setDataSource_pre(
                store->linkToDeath(codecDeathListener, 0);
                codecDeathListeners.emplace_back(codecDeathListener);
            }

            store = ::android::hardware::media::c2::V1_0::
                    IComponentStore::getService("software");
            if (store == nullptr) {
                ALOGD("Codec2 swcodec service is not available");
            } else {
                sp<ServiceDeathNotifier> codecDeathListener =
                        new ServiceDeathNotifier(store, p, MEDIACODEC_PROCESS_DEATH);
                store->linkToDeath(codecDeathListener, 0);
                codecDeathListeners.emplace_back(codecDeathListener);
            }
        }
    }