]> code.delx.au - pulseaudio/blobdiff - src/modules/alsa/alsa-sink.c
idxset: Use pa_free_cb_t instead of pa_free2_cb_t
[pulseaudio] / src / modules / alsa / alsa-sink.c
index 03434f9e7cb54e9e4258bbe9bd37b25510c6f962..69d006e705c84b19c48f9fe169ee7d28124d511f 100644 (file)
@@ -1547,7 +1547,7 @@ static pa_bool_t sink_set_formats(pa_sink *s, pa_idxset *formats) {
             return FALSE;
     }
 
-    pa_idxset_free(u->formats, (pa_free2_cb_t) pa_format_info_free2, NULL);
+    pa_idxset_free(u->formats, (pa_free_cb_t) pa_format_info_free);
     u->formats = pa_idxset_new(NULL, NULL);
 
     /* Note: the logic below won't apply if we're using software encoding.
@@ -2455,7 +2455,7 @@ static void userdata_free(struct userdata *u) {
         pa_smoother_free(u->smoother);
 
     if (u->formats)
-        pa_idxset_free(u->formats, (pa_free2_cb_t) pa_format_info_free2, NULL);
+        pa_idxset_free(u->formats, (pa_free_cb_t) pa_format_info_free);
 
     if (u->rates)
         pa_xfree(u->rates);