]> git.alsa-project.org Git - alsa-lib.git/commitdiff
fixed the missing initialization of poll events for copy plugin.
authorTakashi Iwai <tiwai@suse.de>
Wed, 6 Aug 2003 15:43:30 +0000 (15:43 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Aug 2003 15:43:30 +0000 (15:43 +0000)
src/pcm/pcm_copy.c

index 806090d4c42d75ac76e278e6018e61398b93b1e6..9c4633ba25f127cd167a089bd05b5f514aaf2a4a 100644 (file)
@@ -206,6 +206,7 @@ int snd_pcm_copy_open(snd_pcm_t **pcmp, const char *name, snd_pcm_t *slave, int
        pcm->fast_ops = &snd_pcm_plugin_fast_ops;
        pcm->private_data = copy;
        pcm->poll_fd = slave->poll_fd;
+       pcm->poll_events = slave->poll_events;
        snd_pcm_set_hw_ptr(pcm, &copy->plug.hw_ptr, -1, 0);
        snd_pcm_set_appl_ptr(pcm, &copy->plug.appl_ptr, -1, 0);
        *pcmp = pcm;