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

Function hb_bd_close

libhb/bd.c:989–1006  ·  view source on GitHub ↗

* hb_bd_close *********************************************************************** * Closes and frees everything **********************************************************************/

Source from the content-addressed store, hash-verified

987 * Closes and frees everything
988 **********************************************************************/
989void hb_bd_close( hb_bd_t ** _d )
990{
991 hb_bd_t * d = *_d;
992 int ii;
993
994 if ( d->title_info )
995 {
996 for ( ii = 0; ii < d->title_count; ii++ )
997 bd_free_title_info( d->title_info[ii] );
998 free( d->title_info );
999 }
1000 if( d->stream ) hb_stream_close( &d->stream );
1001 if( d->bd ) bd_close( d->bd );
1002 if( d->path ) free( d->path );
1003
1004 free( d );
1005 *_d = NULL;
1006}
1007
1008/***********************************************************************
1009 * hb_bd_set_angle

Callers 3

hb_reader_openFunction · 0.85
reader_closeFunction · 0.85
ScanFuncFunction · 0.85

Calls 1

hb_stream_closeFunction · 0.85

Tested by

no test coverage detected