diff options
author | Ben Murdoch <benm@google.com> | 2010-12-21 02:25:16 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-21 02:25:16 -0800 |
commit | 842cebacc6b3350dd0084ddc4db65fbcfeb4a254 (patch) | |
tree | 4b84e01c6dc3e5222e6b844ba56af1ef848cc159 | |
parent | 5a97a1f5df59b2cb325891d4c6330c0cba2e01a8 (diff) | |
parent | 45e221ad80c1e62dfd4862da412ab37491517fa9 (diff) | |
download | external_webkit-842cebacc6b3350dd0084ddc4db65fbcfeb4a254.zip external_webkit-842cebacc6b3350dd0084ddc4db65fbcfeb4a254.tar.gz external_webkit-842cebacc6b3350dd0084ddc4db65fbcfeb4a254.tar.bz2 |
Merge "Only download the same poster URL once."
-rw-r--r-- | WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp index bdae711..d3e9f9a 100644 --- a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp +++ b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp @@ -186,6 +186,9 @@ public: } bool canLoadPoster() const { return true; } void setPoster(const String& url) { + if (m_posterUrl == url) + return; + m_posterUrl = url; JNIEnv* env = JSC::Bindings::getJNIEnv(); if (!env || !m_glue->m_javaProxy || !m_posterUrl.length()) |