mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
private_free fixes
This commit is contained in:
parent
7376ad380e
commit
2d0d687591
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue