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

Commit f484952e authored by Lajos Molnar's avatar Lajos Molnar
Browse files

mediaplayer: allow setVideoSurface before setDataSource

Bug: 18709604
Change-Id: I41e4734faed48b5583feb29896cd5783b8cd7e33
parent 7e45789f
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;
            }