pub enum PreviewError {
FileNotFound {
path: PathBuf,
},
NoVideoStream {
path: PathBuf,
},
SeekFailed {
target: Duration,
reason: String,
},
Decode(DecodeError),
Ffmpeg {
code: i32,
message: String,
},
Probe(ProbeError),
Pipeline(PipelineError),
Io(Error),
SeekOutOfRange {
pts: Duration,
},
DecodeThreadPoisoned,
}Expand description
Errors that can occur during preview and proxy operations.
Variants§
FileNotFound
The media file was not found at the specified path.
NoVideoStream
The media file has no video stream.
SeekFailed
A seek operation failed.
Fields
Decode(DecodeError)
An underlying decode error occurred.
Ffmpeg
A raw FFmpeg error.
code is the negative integer returned by the FFmpeg API, or 0 when no
numeric code is available. message is from av_strerror or an internal
description.
Fields
Probe(ProbeError)
A probe error while analysing the media file.
Pipeline(PipelineError)
A proxy generation pipeline error.
Io(Error)
An I/O error during file operations.
SeekOutOfRange
A seek target lies outside the valid range of the timeline.
DecodeThreadPoisoned
The background decode thread panicked and could not be recovered.
The buffer cannot continue decoding; recover at the application level by rebuilding it (e.g. reopen the file). This replaces an earlier internal panic on the same condition.
Trait Implementations§
Source§impl Debug for PreviewError
impl Debug for PreviewError
Source§impl Display for PreviewError
impl Display for PreviewError
Source§impl Error for PreviewError
impl Error for PreviewError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()