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

Commit 2253b3c5 authored by Lajos Molnar's avatar Lajos Molnar Committed by Android Git Automerger
Browse files

am f484952e: mediaplayer: allow setVideoSurface before setDataSource

* commit 'f484952e':
  mediaplayer: allow setVideoSurface before setDataSource
parents 4e3c2bbc f484952e
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;
            }