Skip to content

Commit c1c59cf

Browse files
mmumanCarterLi
authored andcommitted
Sound (Haiku): fix runtime error getting mute status
sizeof(bool) is only 1.
1 parent 519dae9 commit c1c59cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/sound/sound_haiku.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const char* ffDetectSound(FFlist* devices /* List of FFSoundDevice */)
7272

7373
if (mute)
7474
{
75-
bool isMute = false;
75+
int32 isMute = false;
7676
size = sizeof(isMute);
7777
if (mute->GetValue(&isMute, &size, &when) == B_OK && isMute)
7878
return NULL;

0 commit comments

Comments
 (0)