When searching for audio tracks, we are interested in a raw decoded format, not
a raw encoded format. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29373 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1b921108a7
commit
0b2267c921
@ -102,7 +102,7 @@ BTrackReader::BTrackReader(BFile *file, media_raw_audio_format const &format) :
|
||||
if (track == 0 || track->InitCheck() != B_OK)
|
||||
continue;
|
||||
media_format fmt;
|
||||
if (track->EncodedFormat(&fmt) != B_OK)
|
||||
if (track->DecodedFormat(&fmt) != B_OK)
|
||||
continue;
|
||||
if (fmt.type == B_MEDIA_RAW_AUDIO) {
|
||||
audiotrack = track;
|
||||
|
Loading…
Reference in New Issue
Block a user