fix: a/v streams incorrectly recognized as video-only
This commit is contained in:
parent
9c73ed4b30
commit
2b891ca078
5 changed files with 40 additions and 27 deletions
|
|
@ -150,9 +150,7 @@ pub(crate) struct Format {
|
|||
|
||||
impl Format {
|
||||
pub fn is_audio(&self) -> bool {
|
||||
self.content_length.is_some()
|
||||
&& self.audio_quality.is_some()
|
||||
&& self.audio_sample_rate.is_some()
|
||||
self.audio_quality.is_some() && self.audio_sample_rate.is_some()
|
||||
}
|
||||
|
||||
pub fn is_video(&self) -> bool {
|
||||
|
|
|
|||
Reference in a new issue