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

Commit 5635b7d1 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Notify software service"

parents 32fa5079 e4da6c62
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);
            }
        }
    }