diff options
author | Mathias Agopian <mathias@google.com> | 2013-02-14 17:11:27 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-02-15 12:47:35 -0800 |
commit | 1a2952aee048ca7b1765e2bc09ebe9aeddaeafa3 (patch) | |
tree | 8e63f996a20f020e0af736eab89d632204c2c631 /cmds/stagefright/SimplePlayer.cpp | |
parent | 05f625c46b992ab66b8d1527a366fe2746b4e3c7 (diff) | |
download | frameworks_av-1a2952aee048ca7b1765e2bc09ebe9aeddaeafa3.zip frameworks_av-1a2952aee048ca7b1765e2bc09ebe9aeddaeafa3.tar.gz frameworks_av-1a2952aee048ca7b1765e2bc09ebe9aeddaeafa3.tar.bz2 |
Refactoring: Rename SurfaceTextureClient to Surface
Change-Id: I4e8a8b20914cb64edc37abe68233fbc9f2b5d830
Diffstat (limited to 'cmds/stagefright/SimplePlayer.cpp')
-rw-r--r-- | cmds/stagefright/SimplePlayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds/stagefright/SimplePlayer.cpp b/cmds/stagefright/SimplePlayer.cpp index 93de112..5d2d721 100644 --- a/cmds/stagefright/SimplePlayer.cpp +++ b/cmds/stagefright/SimplePlayer.cpp @@ -20,7 +20,7 @@ #include "SimplePlayer.h" -#include <gui/SurfaceTextureClient.h> +#include <gui/Surface.h> #include <media/AudioTrack.h> #include <media/ICrypto.h> #include <media/stagefright/foundation/ABuffer.h> @@ -67,13 +67,13 @@ status_t SimplePlayer::setDataSource(const char *path) { status_t SimplePlayer::setSurface(const sp<IGraphicBufferProducer> &bufferProducer) { sp<AMessage> msg = new AMessage(kWhatSetSurface, id()); - sp<SurfaceTextureClient> surfaceTextureClient; + sp<Surface> surface; if (bufferProducer != NULL) { - surfaceTextureClient = new SurfaceTextureClient(bufferProducer); + surface = new Surface(bufferProducer); } msg->setObject( - "native-window", new NativeWindowWrapper(surfaceTextureClient)); + "native-window", new NativeWindowWrapper(surface)); sp<AMessage> response; return PostAndAwaitResponse(msg, &response); |