diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-08 19:14:03 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-08-08 20:25:44 -0700 |
commit | 820a509687599edb8ff1a7577de8b9295f416263 (patch) | |
tree | 046e39ca32a267f7c958327058db4b3f4308ca16 /include | |
parent | a1f10e8959cd4656aedb2613e855342102e59555 (diff) | |
download | frameworks_av-820a509687599edb8ff1a7577de8b9295f416263.zip frameworks_av-820a509687599edb8ff1a7577de8b9295f416263.tar.gz frameworks_av-820a509687599edb8ff1a7577de8b9295f416263.tar.bz2 |
return correct value from query after connecting a surface
the first time a surface was connected, the values returned
by query NATIVE_WINDOW_DEFAULT_{WIDTH|HEIGHT} and
NATIVE_WINDOW_TRANSFORM_HINT were wrong until a call
to queueBuffer was performed.
Bug: 5137366, 5121607
Change-Id: I7ac6b5b0daa876638f6bed7c20f286a6e6d984f6
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/SurfaceMediaSource.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index fab258c..1affb8a 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -133,7 +133,8 @@ public: // // This method will fail if the connect was previously called on the // SurfaceMediaSource and no corresponding disconnect call was made. - virtual status_t connect(int api); + virtual status_t connect(int api, + uint32_t* outWidth, uint32_t* outHeight, uint32_t* outTransform); // disconnect attempts to disconnect a client API from the SurfaceMediaSource. // Calling this method will cause any subsequent calls to other |