mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-13 13:29:58 -05:00
pa_sink_get_state() and pa_source_get_state() just return the state variable. We can as well access the state variable directly. There are no behaviour changes, except that module-virtual-source accessed the main thread's sink state variable from its push() callback. I fixed the module so that it uses the thread_info.state variable instead. Also, the compiler started to complain about comparing a sink state variable to a source state enum value in protocol-esound.c. The underlying bug was that a source pointer was assigned to a variable whose type was a sink pointer (somehow using the pa_source_get_state() macro confused the compiler enough so that it didn't complain before). I fixed the variable type. |
||
|---|---|---|
| .. | ||
| iface-card-profile.c | ||
| iface-card-profile.h | ||
| iface-card.c | ||
| iface-card.h | ||
| iface-client.c | ||
| iface-client.h | ||
| iface-core.c | ||
| iface-core.h | ||
| iface-device-port.c | ||
| iface-device-port.h | ||
| iface-device.c | ||
| iface-device.h | ||
| iface-memstats.c | ||
| iface-memstats.h | ||
| iface-module.c | ||
| iface-module.h | ||
| iface-sample.c | ||
| iface-sample.h | ||
| iface-stream.c | ||
| iface-stream.h | ||
| module-dbus-protocol.c | ||