]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix segfault with dshare plugin
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Apr 2006 16:53:17 +0000 (18:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Apr 2006 16:53:17 +0000 (18:53 +0200)
Fixed the segfault with dshare plugin at the second open.

src/pcm/pcm_dshare.c

index 4f9ba9c897dfd7a7372dd4fff3a239acad0aa255..665dffddde656bed405c355d43f183cf72d15333 100644 (file)
@@ -706,7 +706,6 @@ int snd_pcm_dshare_open(snd_pcm_t **pcmp, const char *name,
                        
                snd_pcm_direct_semaphore_down(dshare, DIRECT_IPC_SEM_CLIENT);
                ret = snd_pcm_direct_open_secondary_client(&spcm, dshare, "dshare_client");
-               ret = snd_pcm_hw_open_fd(&spcm, "dshare_client", dshare->hw_fd, 0, 0);
                if (ret < 0)
                        goto _err;
                dshare->spcm = spcm;