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

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

stagefright: render video buffers

Change-Id: I72f3b880e81dcd108384d7fda70ce958ccf12a09
parent ee38fad5
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
@@ -342,6 +342,12 @@ static void playSource(OMXClient *client, sp<MediaSource> &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;