summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-12-12 12:15:23 -0800
committerJamie Gennis <jgennis@google.com>2012-12-12 12:15:23 -0800
commit84b6440fa1d1274267deabe0bd8dc626b5548e4c (patch)
treeb5284479445f82ecf482fe09c1638b2db2e962da
parentdbd405dae1e2d2f88e529cc0d1fbdb0a676c4d7a (diff)
downloadframeworks_av-84b6440fa1d1274267deabe0bd8dc626b5548e4c.zip
frameworks_av-84b6440fa1d1274267deabe0bd8dc626b5548e4c.tar.gz
frameworks_av-84b6440fa1d1274267deabe0bd8dc626b5548e4c.tar.bz2
stop using a deprecated SurfaceTextureClient ctor"
-rw-r--r--cmds/stagefright/stagefright.cpp2
-rwxr-xr-xlibvideoeditor/lvpp/NativeWindowRenderer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp
index 1e0e7f8..148b66e 100644
--- a/cmds/stagefright/stagefright.cpp
+++ b/cmds/stagefright/stagefright.cpp
@@ -941,7 +941,7 @@ int main(int argc, char **argv) {
CHECK(useSurfaceTexAlloc);
sp<SurfaceTexture> texture = new SurfaceTexture(0 /* tex */);
- gSurface = new SurfaceTextureClient(texture);
+ gSurface = new SurfaceTextureClient(texture->getBufferQueue());
}
CHECK_EQ((status_t)OK,
diff --git a/libvideoeditor/lvpp/NativeWindowRenderer.cpp b/libvideoeditor/lvpp/NativeWindowRenderer.cpp
index 2e15ff9..efb45e2 100755
--- a/libvideoeditor/lvpp/NativeWindowRenderer.cpp
+++ b/libvideoeditor/lvpp/NativeWindowRenderer.cpp
@@ -569,7 +569,7 @@ RenderInput::RenderInput(NativeWindowRenderer* renderer, GLuint textureId)
: mRenderer(renderer)
, mTextureId(textureId) {
mST = new SurfaceTexture(mTextureId);
- mSTC = new SurfaceTextureClient(mST);
+ mSTC = new SurfaceTextureClient(mST->getBufferQueue());
native_window_connect(mSTC.get(), NATIVE_WINDOW_API_MEDIA);
}