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

Commit 9ae34ec4 authored by Lajos Molnar's avatar Lajos Molnar Committed by Android Git Automerger
Browse files

am b6ac4d49: am 2253b3c5: am f484952e: mediaplayer: allow setVideoSurface before setDataSource

* commit 'b6ac4d49':
  mediaplayer: allow setVideoSurface before setDataSource
parents 11bfbc25 b6ac4d49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
            sp<RefBase> obj;
            CHECK(msg->findObject("native-window", &obj));

            if (mSource->getFormat(false /* audio */) == NULL) {
            if (mSource == NULL || mSource->getFormat(false /* audio */) == NULL) {
                performSetSurface(static_cast<NativeWindowWrapper *>(obj.get()));
                break;
            }