Skip to content

Commit

Permalink
Add condition to not use video-metadata on aarch64 architecture as well
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 28, 2016
1 parent e87c34a commit 19134be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/script/Cargo.toml
Expand Up @@ -17,7 +17,7 @@ debugmozjs = ['js/debugmozjs']
[target.'cfg(any(target_os = "macos", target_os = "linux"))'.dependencies]
tinyfiledialogs = {git = "https://github.com/jdm/tinyfiledialogs"}

[target.'cfg(not(any(target_os = "android", target_arch = "arm")))'.dependencies]
[target.'cfg(not(any(target_os = "android", target_arch = "arm", target_arch = "aarch64")))'.dependencies]
video-metadata = {git = "https://github.com/GuillaumeGomez/video-metadata-rs"}

[dependencies]
Expand Down
6 changes: 3 additions & 3 deletions components/script/dom/htmlmediaelement.rs
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) => {
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion components/script/lib.rs
Expand Up @@ -88,7 +88,7 @@ extern crate url;
#[macro_use]
extern crate util;
extern crate uuid;
#[cfg(not(any(target_os = "android", target_arch = "arm")))]
#[cfg(not(any(target_os = "android", target_arch = "arm", target_arch = "aarch64")))]
extern crate video_metadata;
extern crate webrender_traits;
extern crate websocket;
Expand Down

0 comments on commit 19134be

Please sign in to comment.