Disable video-metadata build on arm architecture as well

This commit is contained in:
Guillaume Gomez 2016-07-27 21:07:15 +02:00
parent 1d53dae960
commit e87c34a9e9
3 changed files with 6 additions and 5 deletions

View file

@ -35,6 +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")))]
use video_metadata;
struct HTMLMediaElementContext {
@ -160,7 +161,7 @@ impl HTMLMediaElementContext {
}
}
#[cfg(not(target_os = "android"))]
#[cfg(not(any(target_os = "android", target_arch = "arm")))]
fn check_metadata(&mut self, elem: &HTMLMediaElement) {
match video_metadata::get_format_from_slice(&self.data) {
Ok(meta) => {
@ -182,8 +183,8 @@ impl HTMLMediaElementContext {
}
}
#[cfg(target_os = "android")]
fn check_metadata(&mut self, _elem: &HTMLMediaElement) {
#[cfg(any(target_os = "android", target_arch = "arm"))]
fn check_metadata(&mut self, elem: &HTMLMediaElement) {
// Step 6.
elem.change_ready_state(HAVE_METADATA);
self.have_metadata = true;