diff --git a/virtio-snd.c b/virtio-snd.c index d7f35f8..9dfc7e1 100644 --- a/virtio-snd.c +++ b/virtio-snd.c @@ -549,7 +549,6 @@ static void virtio_snd_read_pcm_start(const virtio_snd_pcm_hdr_t *query, } /* Control the callback to start playing */ - /* TODO: add lock to avoid race condition */ vsnd_props[stream_id].pp.hdr.hdr.code = VIRTIO_SND_R_PCM_START; v.guest_playing++; pthread_cond_signal(&virtio_snd_ctrl_cond); @@ -573,7 +572,6 @@ static void virtio_snd_read_pcm_stop(const virtio_snd_pcm_hdr_t *query, } /* Control the callback to stop playing */ - /* TODO: add lock to avoid race condition */ vsnd_props[stream_id].pp.hdr.hdr.code = VIRTIO_SND_R_PCM_STOP; v.guest_playing--; pthread_cond_signal(&virtio_snd_ctrl_cond);