[pulseaudio-discuss] [PATCH] match: Support for both merging and replacing proplist updates.

Colin Guthrie gmane at colin.guthr.ie
Fri Apr 29 04:39:58 PDT 2011

'Twas brillig, and Tanu Kaskinen at 29/04/11 11:45 did gyre and gimble:
> This patch adds a new update mode specifier that can be optionally
> given in match rules after the regexp. Propertly list updates triggered
> by the rule will honour the given mode. The two allowed modes are 'merge'
> and 'replace', corresponding to PA_UPDATE_MERGE and PA_UPDATE_REPLACE
> respectively. If omitted, the mode defaults to PA_UPDATE_MERGE, ie. to
> the original behavior.
> For example, to force 'media.role' to be overwritten with 'bar' for
> streams matching foo you can use an entry like this:
> foo replace "bar"
> This will really overwrite media.role to bar even if it has already been
> set to something else by the application.
> Thanks to Krisztian Litkey for the original patch and the description
> above. In addition to implementing the new feature, this patch fixes
> a number of bugs in the parsing code.

Looks sensible to me with a quick parse... in my tree now.



Colin Guthrie

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

More information about the pulseaudio-discuss mailing list