feat(frame): allow deconstruction of type-specific frames

This commit is contained in:
tilpner
2022-06-04 18:02:52 +02:00
committed by meh
parent a969a564b6
commit 5928ce801f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ use super::Frame;
use crate::{ffi::*, util::format, ChannelLayout};
#[derive(PartialEq, Eq)]
pub struct Audio(Frame);
pub struct Audio(pub Frame);
impl Audio {
#[inline(always)]
+1 -1
View File
@@ -16,7 +16,7 @@ use crate::{
};
#[derive(PartialEq, Eq)]
pub struct Video(Frame);
pub struct Video(pub Frame);
impl Video {
#[inline(always)]