diff options
author | Chong Zhang <chz@google.com> | 2014-08-08 15:22:35 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-08-08 15:22:35 -0700 |
commit | ced1c2f8f6c422063092f5cc5c675ccdebb2dc10 (patch) | |
tree | cab0a795dc8f7210d51aaf036585e06d20f19179 /media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp | |
parent | a19f33e4e50cda5d5953fa0cc662502262ac9dfd (diff) | |
download | frameworks_av-ced1c2f8f6c422063092f5cc5c675ccdebb2dc10.zip frameworks_av-ced1c2f8f6c422063092f5cc5c675ccdebb2dc10.tar.gz frameworks_av-ced1c2f8f6c422063092f5cc5c675ccdebb2dc10.tar.bz2 |
some clean up of video size change notification
need to consider rotation when notifying video size change after
initial prepare, in addition to after an output format change.
Bug: 16870964
Change-Id: Icd1c9e901ac932e720ce95b8a983c0edcf251c35
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp index e8431e9..c713d39 100644 --- a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp +++ b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp @@ -210,9 +210,9 @@ void NuPlayer::HTTPLiveSource::onSessionNotify(const sp<AMessage> &msg) { int32_t height; if (format != NULL && format->findInt32("width", &width) && format->findInt32("height", &height)) { - notifyVideoSizeChanged(width, height); + notifyVideoSizeChanged(format); } else { - notifyVideoSizeChanged(0, 0); + notifyVideoSizeChanged(); } uint32_t flags = FLAG_CAN_PAUSE; |