Loading media/libstagefright/MediaCodec.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -6696,8 +6696,8 @@ sp<Surface> MediaCodec::getOrCreateDetachedSurface() { if (!mDetachedSurface) { if (!mDetachedSurface) { uint64_t usage = 0; uint64_t usage = 0; if (!mSurface || mSurface->getConsumerUsage(&usage) != OK) { if (!mSurface || mSurface->getConsumerUsage(&usage) != OK) { // TODO: should we use a/the default consumer usage? // By default prepare buffer to be displayed on any of the common surfaces usage = 0; usage = (GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_HW_COMPOSER); } } mDetachedSurface.reset(new ReleaseSurface(usage)); mDetachedSurface.reset(new ReleaseSurface(usage)); } } Loading Loading
media/libstagefright/MediaCodec.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -6696,8 +6696,8 @@ sp<Surface> MediaCodec::getOrCreateDetachedSurface() { if (!mDetachedSurface) { if (!mDetachedSurface) { uint64_t usage = 0; uint64_t usage = 0; if (!mSurface || mSurface->getConsumerUsage(&usage) != OK) { if (!mSurface || mSurface->getConsumerUsage(&usage) != OK) { // TODO: should we use a/the default consumer usage? // By default prepare buffer to be displayed on any of the common surfaces usage = 0; usage = (GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_HW_COMPOSER); } } mDetachedSurface.reset(new ReleaseSurface(usage)); mDetachedSurface.reset(new ReleaseSurface(usage)); } } Loading