| 3301 | } |
| 3302 | |
| 3303 | static void syncSubtitleClose( hb_work_object_t * w ) |
| 3304 | { |
| 3305 | hb_work_private_t * pv = w->private_data; |
| 3306 | |
| 3307 | if (pv == NULL) |
| 3308 | { |
| 3309 | return; |
| 3310 | } |
| 3311 | |
| 3312 | sync_delta_t * delta; |
| 3313 | while ((delta = hb_list_item(pv->stream->delta_list, 0)) != NULL) |
| 3314 | { |
| 3315 | hb_list_rem(pv->stream->delta_list, delta); |
| 3316 | free(delta); |
| 3317 | } |
| 3318 | hb_list_close(&pv->stream->delta_list); |
| 3319 | hb_list_empty(&pv->stream->in_queue); |
| 3320 | hb_list_empty(&pv->stream->scr_delay_queue); |
| 3321 | hb_buffer_list_close(&pv->stream->subtitle.sanitizer.list_current); |
| 3322 | free(pv); |
| 3323 | w->private_data = NULL; |
| 3324 | } |
| 3325 | |
| 3326 | static int syncSubtitleWork( hb_work_object_t * w, hb_buffer_t ** buf_in, |
| 3327 | hb_buffer_t ** buf_out ) |
nothing calls this directly
no test coverage detected