aded flv metadata processing errors
This commit is contained in:
parent
526a4d6068
commit
895ae2d4e1
1 changed files with 4 additions and 1 deletions
|
@ -61,6 +61,7 @@ pub enum DemuxerError {
|
||||||
FLVUnknownTagType,
|
FLVUnknownTagType,
|
||||||
FLVCheckFail,
|
FLVCheckFail,
|
||||||
FLVPacketNotMetadata,
|
FLVPacketNotMetadata,
|
||||||
|
FLVMetadataSyncFail,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Error for DemuxerError {}
|
impl Error for DemuxerError {}
|
||||||
|
@ -71,7 +72,9 @@ impl fmt::Debug for DemuxerError {
|
||||||
DemuxerError::UnknownSyncByte => write!(f, "sync byte does not match any implemented input format"),
|
DemuxerError::UnknownSyncByte => write!(f, "sync byte does not match any implemented input format"),
|
||||||
DemuxerError::FLVUnknownTagType => write!(f, "FLV tag does not match expected values"),
|
DemuxerError::FLVUnknownTagType => write!(f, "FLV tag does not match expected values"),
|
||||||
DemuxerError::FLVCheckFail => write!(f, "Input does not contain assumed FLV signature"),
|
DemuxerError::FLVCheckFail => write!(f, "Input does not contain assumed FLV signature"),
|
||||||
DemuxerError::FLVPacketNotMetadata => write!(f, "Did not find expected metadata tag")
|
DemuxerError::FLVPacketNotMetadata => write!(f, "Did not find expected metadata tag"),
|
||||||
|
DemuxerError::FLVMetadataSyncFail => write!(f, "ECMA array not where expected"),
|
||||||
|
_ => write!(f, "Error not described yet")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue