From d8e9d34a6408215f4153eded38b3dfea3adf4ef1 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 10 Oct 2023 14:40:29 +0500 Subject: [PATCH] Rename decoder error to be more pipe side specific --- src/util/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/mod.rs b/src/util/mod.rs index 35133ba..08a08cb 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -130,7 +130,7 @@ impl fmt::Display for DemuxerError { pub enum DecoderError { CodecNotImplemented, - InvalidPipeInit, + BrokenInPipe, } impl Error for DecoderError {} @@ -140,7 +140,7 @@ impl fmt::Debug for DecoderError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { 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") } }