diff options
author | Chong Zhang <chz@google.com> | 2013-05-30 21:51:38 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2013-05-30 21:59:05 -0700 |
commit | 1ad3eb9441eb509c792c61aa0181b0e74dbe9984 (patch) | |
tree | 4c9d638d9522efc8fcbc0dd28bad71482e02ef58 /media/libstagefright/wifi-display/source | |
parent | fbb70ce416b193655fbe5ff7f6c8676050bdf524 (diff) | |
download | frameworks_av-1ad3eb9441eb509c792c61aa0181b0e74dbe9984.zip frameworks_av-1ad3eb9441eb509c792c61aa0181b0e74dbe9984.tar.gz frameworks_av-1ad3eb9441eb509c792c61aa0181b0e74dbe9984.tar.bz2 |
wifi-display: fix resolution list and keepalive interval
- add all resolutions lower than 1280x720p30
- schedule next keepalive when sending M16
bug 9116665
Change-Id: I7b3fea2101d3d882c0af5c153af5c502b8ce98f6
Diffstat (limited to 'media/libstagefright/wifi-display/source')
-rw-r--r-- | media/libstagefright/wifi-display/source/WifiDisplaySource.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp index dee95eb..b421b35 100644 --- a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp +++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp @@ -75,7 +75,8 @@ WifiDisplaySource::WifiDisplaySource( mSupportedSourceVideoFormats.setNativeResolution( VideoFormats::RESOLUTION_CEA, 5); // 1280x720 p30 - mSupportedSourceVideoFormats.setProfileLevel( + // Enable all resolutions up to 1280x720p30 + mSupportedSourceVideoFormats.enableResolutionUpto( VideoFormats::RESOLUTION_CEA, 5, VideoFormats::PROFILE_CHP, // Constrained High Profile VideoFormats::LEVEL_32); // Level 3.2 @@ -751,6 +752,8 @@ status_t WifiDisplaySource::sendM16(int32_t sessionID) { ++mNextCSeq; + scheduleKeepAlive(sessionID); + return OK; } @@ -1021,8 +1024,6 @@ status_t WifiDisplaySource::onReceiveM16Response( if (mClientInfo.mPlaybackSession != NULL) { mClientInfo.mPlaybackSession->updateLiveness(); - - scheduleKeepAlive(sessionID); } return OK; |