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

Function hb_list_rem

libhb/common.c:4197–4214  ·  view source on GitHub ↗

* hb_list_rem ********************************************************************** * Remove an item from the list. Bad things will happen if called * with a NULL pointer or if the item is not in the list. *********************************************************************/

Source from the content-addressed store, hash-verified

4195 * with a NULL pointer or if the item is not in the list.
4196 *********************************************************************/
4197void hb_list_rem( hb_list_t * l, void * p )
4198{
4199 int i;
4200
4201 /* Find the item in the list */
4202 for( i = 0; i < l->items_count; i++ )
4203 {
4204 if( l->items[i] == p )
4205 {
4206 /* Shift all items after it sizeof( void * ) bytes earlier */
4207 memmove( &l->items[i], &l->items[i+1],
4208 ( l->items_count - i - 1 ) * sizeof( void * ) );
4209
4210 (l->items_count)--;
4211 break;
4212 }
4213 }
4214}
4215
4216/**********************************************************************
4217 * hb_list_item

Callers 15

hb_scanFunction · 0.85
hb_get_previewFunction · 0.85
hb_remFunction · 0.85
hb_closeFunction · 0.85
thread_funcFunction · 0.85
hb_batch_closeFunction · 0.85
TitleCloseIfoFunction · 0.85
muxCloseFunction · 0.85
hb_dict_to_jobFunction · 0.85
alignStreamFunction · 0.85
alignStreamsFunction · 0.85
computeInitialTSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected