mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa-mixer: Add a couple of assertions
I checked the code to ensure that the assertions hold currently.
This commit is contained in:
parent
0f2840f4c6
commit
2613e4c747
1 changed files with 2 additions and 3 deletions
|
|
@ -4530,10 +4530,9 @@ void pa_alsa_path_set_add_ports(
|
||||||
pa_alsa_path *path;
|
pa_alsa_path *path;
|
||||||
void *state;
|
void *state;
|
||||||
|
|
||||||
|
pa_assert(ps);
|
||||||
pa_assert(ports);
|
pa_assert(ports);
|
||||||
|
pa_assert(core);
|
||||||
if (!ps)
|
|
||||||
return;
|
|
||||||
|
|
||||||
PA_HASHMAP_FOREACH(path, ps->paths, state) {
|
PA_HASHMAP_FOREACH(path, ps->paths, state) {
|
||||||
if (!path->settings || !path->settings->next) {
|
if (!path->settings || !path->settings->next) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue