summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-09-26 10:16:56 -0700
committerAndreas Huber <andih@google.com>2012-09-26 10:16:56 -0700
commit3146c0855ae51d64e1b4370efff8d22148cd808e (patch)
tree61878a582f4fabd83e046574e52cdbe945d903af
parent4c6db4ce1e2760682d1c9e66448dbb39bb5d14d8 (diff)
downloadframeworks_av-3146c0855ae51d64e1b4370efff8d22148cd808e.zip
frameworks_av-3146c0855ae51d64e1b4370efff8d22148cd808e.tar.gz
frameworks_av-3146c0855ae51d64e1b4370efff8d22148cd808e.tar.bz2
Fix shutdown and eliminate those annoying "failed to post..." logs.
Change-Id: I963e0712f59070f83a26946c494fdeb3558aa0e3 related-to-bug: 7230886
-rw-r--r--media/libstagefright/wifi-display/source/WifiDisplaySource.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
index 7f7aeac..e9811f5 100644
--- a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
+++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
@@ -1221,8 +1221,11 @@ sp<WifiDisplaySource::PlaybackSession> WifiDisplaySource::findPlaybackSession(
void WifiDisplaySource::disconnectClient(status_t err) {
if (mClientSessionID != 0) {
if (mClientInfo.mPlaybackSession != NULL) {
- looper()->unregisterHandler(mClientInfo.mPlaybackSession->id());
+ sp<PlaybackSession> playbackSession = mClientInfo.mPlaybackSession;
mClientInfo.mPlaybackSession.clear();
+
+ playbackSession->destroy();
+ looper()->unregisterHandler(playbackSession->id());
}
mNetSession->destroySession(mClientSessionID);