codec/parameters: impl AsRef for all codec::Context wrappers

This commit is contained in:
Tae-il Lim
2016-12-01 15:30:31 +09:00
committed by meh
parent 36ac2513c1
commit 4df56b516f
11 changed files with 82 additions and 7 deletions

View File

@ -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
}
}