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

Function hb_list_empty

libhb/common.c:4330–4342  ·  view source on GitHub ↗

* hb_list_empty ********************************************************************** * Assuming all items are of type hb_buffer_t, close them all and * close the list. *********************************************************************/

Source from the content-addressed store, hash-verified

4328 * close the list.
4329 *********************************************************************/
4330void hb_list_empty( hb_list_t ** _l )
4331{
4332 hb_list_t * l = *_l;
4333 hb_buffer_t * b;
4334
4335 while( ( b = hb_list_item( l, 0 ) ) )
4336 {
4337 hb_list_rem( l, b );
4338 hb_buffer_close( &b );
4339 }
4340
4341 hb_list_close( _l );
4342}
4343
4344/**********************************************************************
4345 * hb_list_close

Callers 6

encavcodecaCloseFunction · 0.85
encvorbisCloseFunction · 0.85
syncVideoCloseFunction · 0.85
syncAudioCloseFunction · 0.85
syncSubtitleCloseFunction · 0.85
encCoreAudioCloseFunction · 0.85

Calls 4

hb_list_itemFunction · 0.85
hb_list_remFunction · 0.85
hb_buffer_closeFunction · 0.85
hb_list_closeFunction · 0.85

Tested by

no test coverage detected