codec: rename kind() to medium()
This commit is contained in:
parent
2dd658f337
commit
7f6d694a7d
@ -47,7 +47,7 @@ impl<'a> Codec<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn kind(&self) -> media::Type {
|
||||
pub fn medium(&self) -> media::Type {
|
||||
unsafe {
|
||||
media::Type::from((*self.ptr).kind)
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn kind(&self) -> media::Type {
|
||||
pub fn medium(&self) -> media::Type {
|
||||
unsafe {
|
||||
media::Type::from((*self.ptr).codec_type)
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ pub enum Id {
|
||||
}
|
||||
|
||||
impl Id {
|
||||
pub fn kind(&self) -> media::Type {
|
||||
pub fn medium(&self) -> media::Type {
|
||||
unsafe {
|
||||
media::Type::from(avcodec_get_type((*self).into()))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user