codec: rename kind() to medium()

This commit is contained in:
meh 2015-05-16 14:43:21 +02:00
parent 2dd658f337
commit 7f6d694a7d
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ impl<'a> Codec<'a> {
} }
} }
pub fn kind(&self) -> media::Type { pub fn medium(&self) -> media::Type {
unsafe { unsafe {
media::Type::from((*self.ptr).kind) media::Type::from((*self.ptr).kind)
} }

View File

@ -45,7 +45,7 @@ impl<'a> Context<'a> {
} }
} }
pub fn kind(&self) -> media::Type { pub fn medium(&self) -> media::Type {
unsafe { unsafe {
media::Type::from((*self.ptr).codec_type) media::Type::from((*self.ptr).codec_type)
} }

View File

@ -441,7 +441,7 @@ pub enum Id {
} }
impl Id { impl Id {
pub fn kind(&self) -> media::Type { pub fn medium(&self) -> media::Type {
unsafe { unsafe {
media::Type::from(avcodec_get_type((*self).into())) media::Type::from(avcodec_get_type((*self).into()))
} }