mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
PipeWire: Fix a crash in device enumeration.
This commit is contained in:
@@ -1826,6 +1826,10 @@ static int ma_on_metadata_property_default__pipewire(void* data, ma_uint32 subje
|
|||||||
(void)subject;
|
(void)subject;
|
||||||
(void)type;
|
(void)type;
|
||||||
|
|
||||||
|
if (key == NULL) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Well this is fun. To get the default device we need to get the value of the "default.audio.sink" and "default.audio.source" keys. Sounds
|
Well this is fun. To get the default device we need to get the value of the "default.audio.sink" and "default.audio.source" keys. Sounds
|
||||||
simple enough, except that the value is actually JSON... Why is the default device stored as a JSON string? Who does this? We're just
|
simple enough, except that the value is actually JSON... Why is the default device stored as a JSON string? Who does this? We're just
|
||||||
|
|||||||
Reference in New Issue
Block a user