Rename decoder error to be more pipe side specific

This commit is contained in:
Muaz Ahmad 2023-10-10 14:40:29 +05:00
parent cd94b24b7b
commit d8e9d34a64

View file

@ -130,7 +130,7 @@ impl fmt::Display for DemuxerError {
pub enum DecoderError { pub enum DecoderError {
CodecNotImplemented, CodecNotImplemented,
InvalidPipeInit, BrokenInPipe,
} }
impl Error for DecoderError {} impl Error for DecoderError {}
@ -140,7 +140,7 @@ impl fmt::Debug for DecoderError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self { match self {
DecoderError::CodecNotImplemented => write!(f, "Codec not recognized"), DecoderError::CodecNotImplemented => write!(f, "Codec not recognized"),
DecoderError::InvalidPipeInit => write!(f, "Decoder has invalid piping"), DecoderError::BrokenInPipe => write!(f, "Decoder has invalid piping"),
_ => write!(f, "Error not described yet") _ => write!(f, "Error not described yet")
} }
} }