summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2013-08-14 23:23:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-14 23:23:16 +0000
commit69b5e38ca1af5696da1c00627d2e64f7db00d2e1 (patch)
tree29a03f149aea8c87d6207a528a60da2751b9f0fd /cmds
parent7f76a81b18ade3158ae27015637074ce08e837b2 (diff)
parent2533c83b4ed8e1ca5b259d59373f941c8f0e9635 (diff)
downloadframeworks_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.cpp12
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();