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

Function hb_chapter_list_copy

libhb/common.c:5650–5667  ·  view source on GitHub ↗

* hb_chapter_list_copy ********************************************************************** * *********************************************************************/

Source from the content-addressed store, hash-verified

5648 *
5649 *********************************************************************/
5650hb_list_t *hb_chapter_list_copy(const hb_list_t *src)
5651{
5652 hb_list_t *list = hb_list_init();
5653 hb_chapter_t *chapter = NULL;
5654 int i;
5655
5656 if( src )
5657 {
5658 for( i = 0; i < hb_list_count(src); i++ )
5659 {
5660 if( ( chapter = hb_list_item( src, i ) ) )
5661 {
5662 hb_list_add( list, hb_chapter_copy(chapter) );
5663 }
5664 }
5665 }
5666 return list;
5667}
5668
5669/**********************************************************************
5670 * hb_chapter_close

Callers 3

hb_add_internalFunction · 0.85
hb_job_copyFunction · 0.85
job_setupFunction · 0.85

Calls 5

hb_list_initFunction · 0.85
hb_list_countFunction · 0.85
hb_list_itemFunction · 0.85
hb_list_addFunction · 0.85
hb_chapter_copyFunction · 0.85

Tested by

no test coverage detected