| 6988 | } |
| 6989 | |
| 6990 | void hb_chapter_queue_close(hb_chapter_queue_t **_q) |
| 6991 | { |
| 6992 | hb_chapter_queue_t * q = *_q; |
| 6993 | hb_chapter_queue_item_t * item; |
| 6994 | |
| 6995 | if (q == NULL) |
| 6996 | { |
| 6997 | return; |
| 6998 | } |
| 6999 | while ((item = hb_list_item(q->list_chapter, 0)) != NULL) |
| 7000 | { |
| 7001 | hb_list_rem(q->list_chapter, item); |
| 7002 | free(item); |
| 7003 | } |
| 7004 | hb_list_close(&q->list_chapter); |
| 7005 | free(q); |
| 7006 | *_q = NULL; |
| 7007 | } |
| 7008 | |
| 7009 | void hb_chapter_enqueue(hb_chapter_queue_t *q, hb_buffer_t *buf) |
| 7010 | { |
no test coverage detected