Bug 489025 - Strict Warning: reference to undefined property this.video.HAVE_META_DATA. r=chris.double

This commit is contained in:
Simon Bünzli 2009-04-20 00:55:11 +02:00
parent 30aea48414
commit 8979139de5

View File

@ -199,7 +199,7 @@
this.showPosition(currentTime, duration);
// If we have metadata, check if this is a <video> without video data.
if (this.video.readyState >= this.video.HAVE_META_DATA) {
if (this.video.readyState >= this.video.HAVE_METADATA) {
if (this.video instanceof HTMLVideoElement &&
(this.video.videoWidth == 0 || this.videoHeight == 0))
this.isAudioOnly = true;