summaryrefslogtreecommitdiffstats
path: root/core/Fifo.c
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 13:34:42 +0000
committerhandbrake <[email protected]>2006-01-14 13:34:42 +0000
commitd35a2a23fe450c88925128b9db7c63a5f1ed395d (patch)
treeed7f6b0e4b1f118b0209c606448b693b822020fb /core/Fifo.c
parent60925e41e540e9c79b522f4864296bc425fcc9e4 (diff)
HandBrake 0.6.2
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@15 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'core/Fifo.c')
-rw-r--r--core/Fifo.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/core/Fifo.c b/core/Fifo.c
index 5c32c59a1..ae0c412da 100644
--- a/core/Fifo.c
+++ b/core/Fifo.c
@@ -1,4 +1,4 @@
-/* $Id: Fifo.c,v 1.14 2004/03/17 10:35:06 titer Exp $
+/* $Id: Fifo.c,v 1.17 2004/04/27 19:30:00 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -14,7 +14,7 @@ HBBuffer * HBBufferInit( int size )
HBBuffer * b;
if( !( b = calloc( sizeof( HBBuffer ), 1 ) ) )
{
- HBLog( "HBBufferInit: malloc() failed, gonna crash" );
+ HBLog( "HBBuffer: malloc() failed, gonna crash" );
return NULL;
}
@@ -31,10 +31,11 @@ HBBuffer * HBBufferInit( int size )
b->data = b->dataOrig + 15;
b->data -= (long) b->data & 15;
#endif
+ b->dataf = (float*) b->data;
if( !b->data )
{
- HBLog( "HBBufferInit: malloc() failed, gonna crash" );
+ HBLog( "HBBuffer: malloc() failed, gonna crash" );
free( b );
return NULL;
}
@@ -57,7 +58,7 @@ void HBBufferReAlloc( HBBuffer * b, int size )
if( !b->data )
{
- HBLog( "HBBufferReAlloc: realloc() failed, gonna crash soon" );
+ HBLog( "HBBuffer: realloc() failed, gonna crash soon" );
}
}
@@ -80,7 +81,7 @@ HBFifo * HBFifoInit( int capacity )
HBFifo * f;
if( !( f = malloc( sizeof( HBFifo ) ) ) )
{
- HBLog( "HBFifoInit: malloc() failed, gonna crash" );
+ HBLog( "HBFifo: malloc() failed, gonna crash" );
return NULL;
}
@@ -91,7 +92,7 @@ HBFifo * HBFifoInit( int capacity )
if( !( f->buffers = malloc( ( capacity + 1 ) * sizeof( void* ) ) ) )
{
- HBLog( "HBFifoInit: malloc() failed, gonna crash" );
+ HBLog( "HBFifo: malloc() failed, gonna crash" );
free( f );
return NULL;
}
@@ -114,7 +115,7 @@ void HBFifoClose( HBFifo ** _f )
{
HBFifo * f = (*_f);
- HBLog( "HBFifoClose: trashing %d buffer%s",
+ HBLog( "HBFifo: trashing %d buffer%s",
HBFifoSize( f ), ( HBFifoSize( f ) > 1 ) ? "s" : "" );
while( f->whereToPush != f->whereToPop )