X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Ffifo.c;h=48f6459709b269d3f60eff34ad1155f7588fe023;hb=033e32de9c380f54c7d1362a3979da205ebc3a29;hp=c756f5673924187fe1f97f819255e5bde09662e1;hpb=c593146bf3fab6290c71cbbb974e0a756e43f5e0;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/fifo.c b/libhb/fifo.c index c756f567..48f64597 100644 --- a/libhb/fifo.c +++ b/libhb/fifo.c @@ -90,8 +90,8 @@ void hb_buffer_pool_free( void ) } } - hb_deep_log( 2, "Allocated %lld bytes of buffers on this pass and Freed %lld bytes, " - "%lld bytes leaked", buffers.allocated, freed, buffers.allocated - freed); + hb_deep_log( 2, "Allocated %"PRId64" bytes of buffers on this pass and Freed %"PRId64" bytes, " + "%"PRId64" bytes leaked", buffers.allocated, freed, buffers.allocated - freed); buffers.allocated = 0; hb_unlock(buffers.lock); } @@ -191,6 +191,7 @@ void hb_buffer_close( hb_buffer_t ** _b ) if( buffer_pool && b->data && !hb_fifo_is_full( buffer_pool ) ) { hb_fifo_push_head( buffer_pool, b ); + *_b = NULL; return; } /* either the pool is full or this size doesn't use a pool - free the buf */