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

Commit 9436e48e authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix the fix

AMessage::find* returns a bool, not a status_t

Change-Id: I89a56181f088881de215e8e79843637eb1b7e8ff
parent c367ca17
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -426,7 +426,7 @@ void NuPlayer::writeTrackInfo(
        return;
    }
    int32_t trackType;
    if (format->findInt32("type", &trackType) != OK) {
    if (!format->findInt32("type", &trackType)) {
        ALOGE("no track type");
        return;
    }
@@ -448,7 +448,7 @@ void NuPlayer::writeTrackInfo(
    }

    AString lang;
    if (format->findString("language", &lang)) {
    if (!format->findString("language", &lang)) {
        ALOGE("no language");
        return;
    }
@@ -1306,6 +1306,10 @@ void NuPlayer::onStart(int64_t startPositionUs) {
    }

    sp<MetaData> audioMeta = mSource->getFormatMeta(true /* audio */);
    if (audioMeta == NULL) {
        ALOGE("no metadata for audio source");
        return;
    }
    audio_stream_type_t streamType = AUDIO_STREAM_MUSIC;
    if (mAudioSink != NULL) {
        streamType = mAudioSink->getAudioStreamType();