We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d416c67 commit c6fb743Copy full SHA for c6fb743
virtio-snd.c
@@ -712,6 +712,14 @@ static void __virtio_snd_frame_dequeue(short *out,
712
713
props->ring.cons.tail = cons_next;
714
715
+ if (list_empty(&props->buf_queue_head))
716
+ goto finally;
717
+ vsnd_buf_queue_node_t *node =
718
+ list_first_entry(&props->buf_queue_head, vsnd_buf_queue_node_t, q);
719
+ list_del(&node->q);
720
+ // memcpy(out, node->addr, node->len);
721
+
722
+finally:
723
props->ring.buf_ev_notity--;
724
pthread_cond_signal(&props->ring.writable);
725
pthread_mutex_unlock(&props->ring.lock);
0 commit comments