summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-12-06 17:55:38 -0800
committerJames Dong <jdong@google.com>2011-12-06 17:58:22 -0800
commitca402cdcacfdcd2978a22d59f446c93aad34c75e (patch)
tree36c7217db45eb2e7fda1fea5fe33d7e1228ae6d0 /media
parent738a154a1b27ff908616c336d4adf400a141eebf (diff)
downloadframeworks_base-ca402cdcacfdcd2978a22d59f446c93aad34c75e.zip
frameworks_base-ca402cdcacfdcd2978a22d59f446c93aad34c75e.tar.gz
frameworks_base-ca402cdcacfdcd2978a22d59f446c93aad34c75e.tar.bz2
Update onVideoSizeChanged() callback method Java doc to explicitly specify the conditions under which the width/height passed
to the callback could be 0. Change-Id: Ie921f0af8284eccfd02c4a5826ed41fe19f9676f related-to-bug: 5613451
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaPlayer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index 8d71dcf..4c70e9d 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -1735,6 +1735,9 @@ public class MediaPlayer
/**
* Called to indicate the video size
*
+ * The video size (width and height) could be 0 if there was no video,
+ * no display surface was set, or the value was not determined yet.
+ *
* @param mp the MediaPlayer associated with this callback
* @param width the width of the video
* @param height the height of the video