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

Commit 3a0b714f authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright: render video buffers

Change-Id: I72f3b880e81dcd108384d7fda70ce958ccf12a09
parent b586c8e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ LOCAL_SRC_FILES:= \

LOCAL_SHARED_LIBRARIES := \
	libstagefright libmedia libutils libbinder libstagefright_foundation \
        libjpeg libgui libcutils liblog
        libjpeg libgui libcutils liblog libui

LOCAL_C_INCLUDES:= \
	frameworks/av/media/libstagefright \
+6 −0
Original line number Diff line number Diff line
@@ -343,6 +343,12 @@ static void playSource(OMXClient *client, sp<IMediaSource> &source) {
                    printf(".");
                    fflush(stdout);
                }

                // render buffers from OMXCodec
                if (buffer->graphicBuffer() != NULL && gSurface != NULL) {
                    gSurface->queueBuffer(gSurface.get(), buffer->graphicBuffer()->getNativeBuffer(), -1);
                    buffer->meta_data()->setInt32(kKeyRendered, 1);
                }
            }

            sumDecodeUs += delayDecodeUs;