pub fn is_valid(&self) -> bool {
        let mut valid = true;
        if first_box!(&self.boxes, MediaHeaderBox).is_none() {
            log::error!("MediaBox: no MediaHeaderBox present");
            valid = false;
        }
        if first_box!(&self.boxes, HandlerBox).is_none() {
            log::error!("MediaBox: no HandlerBox present");
            valid = false;
        }
        match first_box!(&self.boxes, MediaInformationBox) {
            Some(mi) => {
                if !mi.is_valid() {
                    valid = false;
                }
            },
            None => {
                log::error!("MediaBox: no MediaInformationBox present");
                valid = false;
            }
        }

        valid
    }
/// Check if this track is valid (has header, handler, and mediainfo boxes).
Check if this track is valid (has header, handler, and mediainfo boxes).
Check if this track is valid ( has header handler and mediainfo boxes ) .
pub fn is_valid(&self) -> bool {
        let mut valid = true;
        if first_box!(&self.boxes, MediaHeaderBox).is_none() {
            log::error!("MediaBox: no MediaHeaderBox present");
            valid = false;
        }
        if first_box!(&self.boxes, HandlerBox).is_none() {
            log::error!("MediaBox: no HandlerBox present");
            valid = false;
        }
        match first_box!(&self.boxes, MediaInformationBox) {
            Some(mi) => {
                if !mi.is_valid() {
                    valid = false;
                }
            },
            None => {
                log::error!("MediaBox: no MediaInformationBox present");
                valid = false;
            }
        }
        valid
    }
pub fn is_valid ( & self ) -> bool { let mut valid = true ; if first_box ! ( self boxes MediaHeaderBox ) . is_none ( ) { log :: error ! ( " " ) ; valid = false ; } if first_box ! ( self boxes HandlerBox ) . is_none ( ) { log :: error ! ( " " ) ; valid = false ; } match first_box ! ( self boxes MediaInformationBox ) { Some ( mi ) => { if ! mi . is_valid ( ) { valid = false ; } } , None => { log :: error ! ( " " ) ; valid = false ; } } valid }
Check if this track is valid (has header, handler, and mediainfo boxes).
Check if this track is valid ( has header handler and mediainfo boxes ) .
&self
&self