summaryrefslogtreecommitdiffstats
path: root/libhb/fifo.c
diff options
context:
space:
mode:
authortiter <[email protected]>2006-02-22 19:32:43 +0000
committertiter <[email protected]>2006-02-22 19:32:43 +0000
commit59fdec6de410480ca0b9eb7bb9b7e37a6ddc1384 (patch)
tree1c8a9cff6be5a3ac200dc671c3ab029c69299341 /libhb/fifo.c
parentf2d6457b5e4951bf5cc8d4d005e5ef82b5e6eda9 (diff)
Fix for missing subtitles
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@28 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/fifo.c')
-rw-r--r--libhb/fifo.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libhb/fifo.c b/libhb/fifo.c
index 81ca2a184..acdb21188 100644
--- a/libhb/fifo.c
+++ b/libhb/fifo.c
@@ -136,6 +136,22 @@ hb_buffer_t * hb_fifo_see( hb_fifo_t * f )
return b;
}
+hb_buffer_t * hb_fifo_see2( hb_fifo_t * f )
+{
+ hb_buffer_t * b;
+
+ hb_lock( f->lock );
+ if( f->size < 2 )
+ {
+ hb_unlock( f->lock );
+ return NULL;
+ }
+ b = f->first->next;
+ hb_unlock( f->lock );
+
+ return b;
+}
+
void hb_fifo_push( hb_fifo_t * f, hb_buffer_t * b )
{
if( !b )