codec/parameters: impl AsRef
for all codec::Context
wrappers
This commit is contained in:
@ -7,6 +7,7 @@ use super::Opened;
|
||||
use ::{packet, Error, AudioService, ChannelLayout};
|
||||
use ::frame;
|
||||
use ::util::format;
|
||||
use ::codec::Context;
|
||||
|
||||
pub struct Audio(pub Opened);
|
||||
|
||||
@ -117,3 +118,9 @@ impl DerefMut for Audio {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<Context> for Audio {
|
||||
fn as_ref(&self) -> &Context {
|
||||
&self
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user