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

Function push_buf

libhb/reader.c:410–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410static void push_buf( hb_work_private_t *r, hb_fifo_t *fifo, hb_buffer_t *buf )
411{
412 while ( !*r->die && !r->job->done )
413 {
414 if ( hb_fifo_full_wait( fifo ) )
415 {
416 hb_fifo_push( fifo, buf );
417 buf = NULL;
418 break;
419 }
420 }
421 if ( buf )
422 {
423 hb_buffer_close( &buf );
424 }
425}
426
427static void reader_send_eof( hb_work_private_t * r )
428{

Callers 2

reader_send_eofFunction · 0.85
reader_workFunction · 0.85

Calls 3

hb_fifo_full_waitFunction · 0.85
hb_fifo_pushFunction · 0.85
hb_buffer_closeFunction · 0.85

Tested by

no test coverage detected