OSDN Git Service

Updates NEWS file with changes since the last release.
[handbrake-jp/handbrake-jp-git.git] / libhb / fifo.c
index 3234065..44c64d9 100644 (file)
@@ -62,6 +62,15 @@ void hb_buffer_close( hb_buffer_t ** _b )
     *_b = NULL;
 }
 
+void hb_buffer_copy_settings( hb_buffer_t * dst, const hb_buffer_t * src )
+{
+    dst->start     = src->start;
+    dst->stop      = src->stop;
+    dst->new_chap  = src->new_chap;
+    dst->frametype = src->frametype;
+    dst->flags     = src->flags;
+}
+
 /* Fifo */
 struct hb_fifo_s
 {
@@ -129,7 +138,7 @@ hb_buffer_t * hb_fifo_get( hb_fifo_t * f )
     b->next   = NULL;
     f->size  -= 1;
     hb_unlock( f->lock );
-
+    
     return b;
 }