pulse-server: add quirk to block record and playback streams

Add aquirk to block any record or playback stream.
This commit is contained in:
Wim Taymans 2024-09-23 10:56:40 +02:00
parent 4b9db9492e
commit ca488a5dcc
4 changed files with 18 additions and 0 deletions

View file

@ -19,6 +19,8 @@ static uint64_t parse_quirks(const char *str)
{ "remove-capture-dont-move", QUIRK_REMOVE_CAPTURE_DONT_MOVE },
{ "block-source-volume", QUIRK_BLOCK_SOURCE_VOLUME },
{ "block-sink-volume", QUIRK_BLOCK_SINK_VOLUME },
{ "block-record-stream", QUIRK_BLOCK_RECORD_STREAM },
{ "block-playback-stream", QUIRK_BLOCK_PLAYBACK_STREAM },
};
SPA_FOR_EACH_ELEMENT_VAR(quirk_keys, i) {
if (spa_streq(str, i->key))