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

Function reader_close

libhb/reader.c:338–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336
337
338static void reader_close( hb_work_object_t * w )
339{
340 hb_work_private_t * r = w->private_data;
341
342 if ( r == NULL )
343 {
344 return;
345 }
346 if (r->bd)
347 {
348 hb_bd_stop( r->bd );
349 hb_bd_close( &r->bd );
350 }
351 else if (r->dvd)
352 {
353 hb_dvd_stop( r->dvd );
354 hb_dvd_close( &r->dvd );
355 }
356 else if (r->stream)
357 {
358 hb_stream_close(&r->stream);
359 }
360
361 int ii;
362 for (ii = 0; ii < r->splice_list_size; ii++)
363 {
364 hb_buffer_list_close(&r->splice_list[ii].list);
365 }
366
367 free(r->fifos);
368 free(r->splice_list);
369 free(r);
370}
371
372static hb_buffer_t * splice_discontinuity( hb_work_private_t *r, hb_buffer_t *buf )
373{

Callers

nothing calls this directly

Calls 6

hb_bd_stopFunction · 0.85
hb_bd_closeFunction · 0.85
hb_dvd_stopFunction · 0.85
hb_dvd_closeFunction · 0.85
hb_stream_closeFunction · 0.85
hb_buffer_list_closeFunction · 0.85

Tested by

no test coverage detected