pipewire/src
Barnabás Pőcze c248091528 pulse-server: module-switch-on-connect: remove dead code and one allocation
As Coverity correctly points out, the `if (blocklist)` condition
is never true after the `out` label, so this commit makes some
changes to remove the dead code.

First of all, the `regex_t` object is directly embedded in the
module's data struct, so the `malloc()` call can be removed,
and thus there is no need for the cleanup code anymore, so everything
after the `out` label is also removed.

Furthermore, two NULL checks are removed which check `d->blocklist`
from `module_switch_on_connect_unload()` and `manager_added()`
because both of those functions can only ever run if the `d->blocklist`
regex object has been successfully initialized in `module_switch_on_connect_prepare()`.
Those checks were not strictly needed to begin with.
2022-06-05 18:04:03 +00:00
..
daemon settings: also allow 44.1KHz as samplerate 2022-04-28 17:02:27 +02:00
examples audio-src: queued only requested frames 2022-05-02 16:55:53 +02:00
gst gst: add client-properties 2022-06-03 13:00:52 +02:00
modules pulse-server: module-switch-on-connect: remove dead code and one allocation 2022-06-05 18:04:03 +00:00
pipewire stream: improve docs about direction 2022-06-02 13:06:03 +02:00
tests Cleanup argument names in methods and events interfaces 2022-04-15 10:11:49 +02:00
tools pw-cat: support stdin/stdout for input/output 2022-05-20 08:03:03 +02:00
meson.build treewide: meson.build: use feature.allowed() 2022-02-04 00:15:59 +01:00