Skip to content

Commit

Permalink
backend/vaapi/decoder: address clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnurou committed Feb 1, 2024
1 parent 2fc6b80 commit bb8ed95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/vaapi/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ pub(crate) enum StreamMetadataState {
Parsed(ParsedStreamMetadata),
}

type StreamStateWithPool<M> = (StreamMetadataState, Vec<Rc<RefCell<SurfacePool<M>>>>);

impl StreamMetadataState {
/// Returns a reference to the parsed metadata state or an error if we haven't reached that
/// state yet.
Expand All @@ -161,7 +163,7 @@ impl StreamMetadataState {
old_surface_pools: Vec<Rc<RefCell<SurfacePool<M>>>>,
supports_context_reuse: bool,
pool_creation_mode: PoolCreationMode,
) -> anyhow::Result<(StreamMetadataState, Vec<Rc<RefCell<SurfacePool<M>>>>)> {
) -> anyhow::Result<StreamStateWithPool<M>> {
let va_profile = hdr.va_profile()?;
let rt_format = hdr.rt_format()?;

Expand Down

0 comments on commit bb8ed95

Please sign in to comment.