diff --git a/src/util/mod.rs b/src/util/mod.rs index c48f2ce..7211884 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -57,7 +57,8 @@ pub struct RawMedia { // Errors pub enum GenericError { - UnknownSyncByte + UnknownSyncByte, + FLVUnknownTagType, } impl Error for GenericError {} @@ -66,6 +67,7 @@ impl fmt::Debug for GenericError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { GenericError::UnknownSyncByte => write!(f, "sync byte does not match any implemented input format"), + GenericError::FLVUnknownTagType => write!(f, "FLV tag does not match expected values") } } }