X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Ffifo.c;h=fcb7b8366dd7b17b98ec92a6d83c940a2ec62569;hb=d624933d6d66444a469a6d64f89bb0bd993215eb;hp=cd348c863dca26e14f9324bff4daa4bfb9e90cdd;hpb=8296b674632d07820bdf2f62e8dc368afbe1d683;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/fifo.c b/libhb/fifo.c index cd348c86..fcb7b836 100644 --- a/libhb/fifo.c +++ b/libhb/fifo.c @@ -453,7 +453,7 @@ void hb_fifo_push_wait( hb_fifo_t * f, hb_buffer_t * b ) f->size += 1; f->last = f->last->next; } - if( f->wait_empty && f->size >= f->thresh ) + if( f->wait_empty && f->size >= 1 ) { f->wait_empty = 0; hb_cond_signal( f->cond_empty ); @@ -485,7 +485,7 @@ void hb_fifo_push( hb_fifo_t * f, hb_buffer_t * b ) f->size += 1; f->last = f->last->next; } - if( f->wait_empty && f->size >= f->thresh ) + if( f->wait_empty && f->size >= 1 ) { f->wait_empty = 0; hb_cond_signal( f->cond_empty );