]> code.delx.au - pulseaudio/blobdiff - src/modules/alsa/alsa-mixer.c
hashmap: Add pa_hashmap_remove_all()
[pulseaudio] / src / modules / alsa / alsa-mixer.c
index 881d13de216598cbc45754c0672dd7fcc44d7f95..97f25afc33a71aec8b0a58fa54d1f7c0e838a295 100644 (file)
@@ -3740,7 +3740,7 @@ static void mapping_paths_probe(pa_alsa_mapping *m, pa_alsa_profile *profile,
     mixer_handle = pa_alsa_open_mixer_for_pcm(pcm_handle, NULL, &hctl_handle);
     if (!mixer_handle || !hctl_handle) {
          /* Cannot open mixer, remove all entries */
-        while (pa_hashmap_steal_first(ps->paths));
+        pa_hashmap_remove_all(ps->paths, NULL);
         return;
     }