private_free fixes

This commit is contained in:
Abramo Bagnara 2000-08-16 16:05:57 +00:00
parent 7376ad380e
commit 2d0d687591
4 changed files with 4 additions and 4 deletions

View file

@ -284,7 +284,7 @@ struct snd_stru_pcm_plugin {
snd_pcm_plugin_t *next;
snd_pcm_plug_t *plug;
void *private_data;
void (*private_free)(snd_pcm_plugin_t *plugin, void *private_data);
void (*private_free)(snd_pcm_plugin_t *plugin);
char *buf;
size_t buf_frames;
snd_pcm_plugin_channel_t *buf_channels;

View file

@ -210,7 +210,7 @@ int snd_pcm_plugin_free(snd_pcm_plugin_t *plugin)
{
assert(plugin);
if (plugin->private_free)
plugin->private_free(plugin, plugin->private_data);
plugin->private_free(plugin);
if (plugin->name)
free(plugin->name);
free(plugin->buf_channels);

View file

@ -258,7 +258,7 @@ static int mmap_action(snd_pcm_plugin_t *plugin,
return 0; /* silenty ignore other actions */
}
static void mmap_free(snd_pcm_plugin_t *plugin, void *private_data ATTRIBUTE_UNUSED)
static void mmap_free(snd_pcm_plugin_t *plugin)
{
struct mmap_private_data *data;

View file

@ -410,7 +410,7 @@ int route_dst_channels_mask(snd_pcm_plugin_t *plugin,
return 0;
}
static void route_free(snd_pcm_plugin_t *plugin, void* private_data ATTRIBUTE_UNUSED)
static void route_free(snd_pcm_plugin_t *plugin)
{
route_t *data = (route_t *)plugin->extra_data;
unsigned int dst_channel;