MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / syncSubtitleClose

Function syncSubtitleClose

libhb/sync.c:3303–3324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3301}
3302
3303static 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
3326static int syncSubtitleWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
3327 hb_buffer_t ** buf_out )

Callers

nothing calls this directly

Calls 5

hb_list_itemFunction · 0.85
hb_list_remFunction · 0.85
hb_list_closeFunction · 0.85
hb_list_emptyFunction · 0.85
hb_buffer_list_closeFunction · 0.85

Tested by

no test coverage detected