diff options
author | Andy McFadden <fadden@android.com> | 2013-08-14 23:23:15 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-14 23:23:16 +0000 |
commit | 69b5e38ca1af5696da1c00627d2e64f7db00d2e1 (patch) | |
tree | 29a03f149aea8c87d6207a528a60da2751b9f0fd /cmds | |
parent | 7f76a81b18ade3158ae27015637074ce08e837b2 (diff) | |
parent | 2533c83b4ed8e1ca5b259d59373f941c8f0e9635 (diff) | |
download | frameworks_av-69b5e38ca1af5696da1c00627d2e64f7db00d2e1.zip frameworks_av-69b5e38ca1af5696da1c00627d2e64f7db00d2e1.tar.gz frameworks_av-69b5e38ca1af5696da1c00627d2e64f7db00d2e1.tar.bz2 |
Merge "Use destroyDisplay()" into klp-dev
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/screenrecord/screenrecord.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cmds/screenrecord/screenrecord.cpp b/cmds/screenrecord/screenrecord.cpp index 923f781..3ce8862 100644 --- a/cmds/screenrecord/screenrecord.cpp +++ b/cmds/screenrecord/screenrecord.cpp @@ -461,17 +461,9 @@ static status_t recordScreen(const char* fileName) { printf("Stopping encoder and muxer\n"); } - // Shut everything down. - // - // The virtual display will continue to produce frames until "dpy" - // goes out of scope (and something causes the Binder traffic to transmit; - // can be forced with IPCThreadState::self()->flushCommands()). This - // could cause SurfaceFlinger to get stuck trying to feed us, so we want - // to set a NULL Surface to make the virtual display "dormant". + // Shut everything down, starting with the producer side. bufferProducer = NULL; - SurfaceComposerClient::openGlobalTransaction(); - SurfaceComposerClient::setDisplaySurface(dpy, bufferProducer); - SurfaceComposerClient::closeGlobalTransaction(); + SurfaceComposerClient::destroyDisplay(dpy); encoder->stop(); muxer->stop(); |