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

Commit 12a84134 authored by Andy Hung's avatar Andy Hung
Browse files

Nuplayer: Fix playback for video only streams

Bug: 24146140
Change-Id: I58c72c74cfcffa66ea8dc5804bcfc5ba884cbab9
parent dfaded0e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1312,10 +1312,7 @@ void NuPlayer::onStart(int64_t startPositionUs) {
    }

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