]> git.alsa-project.org Git - alsa-lib.git/commitdiff
fix the file plugin
authorClemens Ladisch <clemens@ladisch.de>
Mon, 28 Feb 2005 08:25:12 +0000 (08:25 +0000)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 28 Feb 2005 08:25:12 +0000 (08:25 +0000)
Call snd_pcm_file_hw_params instead of snd_pcm_generic_hw_params
to prevent a crash when the file plugin is used.

src/pcm/pcm_file.c

index 132fb23c9c44cdc0f9e450ec3cb9607a0a584218..0947708e98f0c76c00147a7a513dac565e9928fd 100644 (file)
@@ -340,7 +340,7 @@ static snd_pcm_ops_t snd_pcm_file_ops = {
        .close = snd_pcm_file_close,
        .info = snd_pcm_generic_info,
        .hw_refine = snd_pcm_generic_hw_refine,
-       .hw_params = snd_pcm_generic_hw_params,
+       .hw_params = snd_pcm_file_hw_params,
        .hw_free = snd_pcm_file_hw_free,
        .sw_params = snd_pcm_generic_sw_params,
        .channel_info = snd_pcm_generic_channel_info,