* hb_title_close ********************************************************************** * *********************************************************************/
| 4699 | * |
| 4700 | *********************************************************************/ |
| 4701 | void 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 | |
| 4750 | static void job_setup(hb_job_t * job, hb_title_t * title) |
| 4751 | { |
no test coverage detected