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 54f9bef commit a1818c0Copy full SHA for a1818c0
virtio-snd.c
@@ -303,6 +303,7 @@ typedef struct {
303
typedef struct {
304
void *addr; /* points to the guest OS buffer */
305
uint32_t len;
306
+ uint32_t pos; /* current position in this node */
307
struct list_head q;
308
} vsnd_buf_queue_node_t;
309
@@ -929,6 +930,7 @@ static void __virtio_snd_frame_enqueue(void *payload,
929
930
vsnd_buf_queue_node_t *node = malloc(sizeof(*node));
931
node->addr = payload;
932
node->len = n;
933
+ node->pos = 0;
934
list_push(&node->q, &props->buf_queue_head);
935
#if WRITEOUT
936
fwrite(node->addr, sizeof(void), node->len, outfile);
0 commit comments