Add condition to not use video-metadata on aarch64 architecture as well

This commit is contained in:
Guillaume Gomez 2016-07-28 02:28:02 +02:00
parent e87c34a9e9
commit 19134be74f
3 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ use string_cache::Atom;
use task_source::TaskSource;
use time::{self, Timespec, Duration};
use url::Url;
#[cfg(not(any(target_os = "android", target_arch = "arm")))]
#[cfg(not(any(target_os = "android", target_arch = "arm", target_arch = "aarch64")))]
use video_metadata;
struct HTMLMediaElementContext {
@ -161,7 +161,7 @@ impl HTMLMediaElementContext {
}
}
#[cfg(not(any(target_os = "android", target_arch = "arm")))]
#[cfg(not(any(target_os = "android", target_arch = "arm", target_arch = "aarch64")))]
fn check_metadata(&mut self, elem: &HTMLMediaElement) {
match video_metadata::get_format_from_slice(&self.data) {
Ok(meta) => {
@ -183,7 +183,7 @@ impl HTMLMediaElementContext {
}
}
#[cfg(any(target_os = "android", target_arch = "arm"))]
#[cfg(any(target_os = "android", target_arch = "arm", target_arch = "aarch64"))]
fn check_metadata(&mut self, elem: &HTMLMediaElement) {
// Step 6.
elem.change_ready_state(HAVE_METADATA);