pcm_share plugin: fix pcm->monotonic setup in open() function
authorJaroslav Kysela <perex@perex.cz>
Tue, 13 Apr 2010 08:08:56 +0000 (10:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 13 Apr 2010 08:08:56 +0000 (10:08 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/pcm/pcm_share.c

index c8a2d20..56a8685 100644 (file)
@@ -1529,7 +1529,7 @@ int snd_pcm_share_open(snd_pcm_t **pcmp, const char *name, const char *sname,
        pcm->private_data = share;
        pcm->poll_fd = share->client_socket;
        pcm->poll_events = stream == SND_PCM_STREAM_PLAYBACK ? POLLOUT : POLLIN;
-       pcm->monotonic = pcm->monotonic;
+       pcm->monotonic = slave->pcm->monotonic;
        snd_pcm_set_hw_ptr(pcm, &share->hw_ptr, -1, 0);
        snd_pcm_set_appl_ptr(pcm, &share->appl_ptr, -1, 0);