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

Function hb_title_close

libhb/common.c:4701–4748  ·  view source on GitHub ↗

* hb_title_close ********************************************************************** * *********************************************************************/

Source from the content-addressed store, hash-verified

4699 *
4700 *********************************************************************/
4701void hb_title_close( hb_title_t ** _t )
4702{
4703 hb_title_t * t = *_t;
4704 hb_audio_t * audio;
4705 hb_chapter_t * chapter;
4706 hb_subtitle_t * subtitle;
4707 hb_attachment_t * attachment;
4708
4709 hb_data_close(&t->initial_rpu);
4710
4711 while( ( chapter = hb_list_item( t->list_chapter, 0 ) ) )
4712 {
4713 hb_list_rem( t->list_chapter, chapter );
4714 hb_chapter_close( &chapter );
4715 }
4716 hb_list_close( &t->list_chapter );
4717
4718 while( ( audio = hb_list_item( t->list_audio, 0 ) ) )
4719 {
4720 hb_list_rem( t->list_audio, audio );
4721 hb_audio_close( &audio );
4722 }
4723 hb_list_close( &t->list_audio );
4724
4725 while( ( subtitle = hb_list_item( t->list_subtitle, 0 ) ) )
4726 {
4727 hb_list_rem( t->list_subtitle, subtitle );
4728 hb_subtitle_close( &subtitle );
4729 }
4730 hb_list_close( &t->list_subtitle );
4731
4732 while( ( attachment = hb_list_item( t->list_attachment, 0 ) ) )
4733 {
4734 hb_list_rem( t->list_attachment, attachment );
4735 hb_attachment_close( &attachment );
4736 }
4737 hb_list_close( &t->list_attachment );
4738
4739 hb_metadata_close( &t->metadata );
4740
4741 free((char*)t->name);
4742 free((char*)t->path);
4743 free(t->video_codec_name);
4744 free(t->container_name);
4745
4746 free( t );
4747 *_t = NULL;
4748}
4749
4750static void job_setup(hb_job_t * job, hb_title_t * title)
4751{

Callers 10

hb_scanFunction · 0.85
hb_closeFunction · 0.85
thread_funcFunction · 0.85
hb_batch_title_scanFunction · 0.85
hb_dvdnav_title_scanFunction · 0.85
hb_dvdread_title_scanFunction · 0.85
hb_stream_title_scanFunction · 0.85
ScanFuncFunction · 0.85
hb_bd_title_scanFunction · 0.85

Calls 9

hb_data_closeFunction · 0.85
hb_list_itemFunction · 0.85
hb_list_remFunction · 0.85
hb_chapter_closeFunction · 0.85
hb_list_closeFunction · 0.85
hb_audio_closeFunction · 0.85
hb_subtitle_closeFunction · 0.85
hb_attachment_closeFunction · 0.85
hb_metadata_closeFunction · 0.85

Tested by

no test coverage detected