B_MEDIA_RAW_AUDIO is not a flag for media_type, instead we must check for audio values.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36407 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2010-04-21 22:21:48 +00:00
parent 32a32c2e70
commit 3fe663e009

View File

@ -382,7 +382,8 @@ DefaultManager::FindPhysical(volatile media_node_id *id, uint32 default_type,
BPath msgPath;
dormant_node_info msgDninfo;
int32 input_id;
bool isAudio = type & B_MEDIA_RAW_AUDIO;
bool isAudio = (type == B_MEDIA_RAW_AUDIO)
|| (type == B_MEDIA_ENCODED_AUDIO);
for (int32 i = 0; i < fMsgList.CountItems(); i++) {
msg = (BMessage *)fMsgList.ItemAt(i);