[vlc-commits] commit: Avoid warnings ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Thu Apr 15 20:54:14 CEST 2010
vlc/vlc-1.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 15 21:51:40 2010 +0300| [3e7d1bbda8aa1ef38678b0f60934d1c273ba1107] | committer: Rémi Denis-Courmont
Avoid warnings
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.0.git/?a=commit;h=3e7d1bbda8aa1ef38678b0f60934d1c273ba1107
---
modules/codec/a52.c | 11 ++++++++---
modules/codec/dts.c | 11 ++++++++---
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/modules/codec/a52.c b/modules/codec/a52.c
index fe808fc..a33f3c0 100644
--- a/modules/codec/a52.c
+++ b/modules/codec/a52.c
@@ -100,7 +100,7 @@ enum {
static void *DecodeBlock ( decoder_t *, block_t ** );
static uint8_t *GetOutBuffer ( decoder_t *, block_t ** );
-static aout_buffer_t *GetAoutBuffer( decoder_t * );
+static block_t *GetAoutBuffer( decoder_t * );
static block_t *GetSoutBuffer( decoder_t * );
/*****************************************************************************
@@ -381,7 +381,7 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
}
else
{
- aout_buffer_t *p_aout_buffer = GetAoutBuffer( p_dec );
+ block_t *p_aout_buffer = GetAoutBuffer( p_dec );
p_buf = p_aout_buffer ? p_aout_buffer->p_buffer : NULL;
*pp_out_buffer = p_aout_buffer;
}
@@ -392,7 +392,7 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
/*****************************************************************************
* GetAoutBuffer:
*****************************************************************************/
-static aout_buffer_t *GetAoutBuffer( decoder_t *p_dec )
+static block_t *GetAoutBuffer( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
aout_buffer_t *p_buf;
@@ -403,7 +403,12 @@ static aout_buffer_t *GetAoutBuffer( decoder_t *p_dec )
p_buf->start_date = aout_DateGet( &p_sys->end_date );
p_buf->end_date = aout_DateIncrement( &p_sys->end_date, p_sys->frame.i_samples );
+#if 0
return p_buf;
+#else
+ decoder_DeleteAudioBuffer( p_dec, p_buf );
+ return NULL;
+#endif
}
/*****************************************************************************
diff --git a/modules/codec/dts.c b/modules/codec/dts.c
index f8f64eb..d47b41a 100644
--- a/modules/codec/dts.c
+++ b/modules/codec/dts.c
@@ -109,7 +109,7 @@ static int SyncInfo( const uint8_t *, bool *, unsigned int *, unsigned int *,
unsigned int *, unsigned int *, unsigned int * );
static uint8_t *GetOutBuffer ( decoder_t *, block_t ** );
-static aout_buffer_t *GetAoutBuffer( decoder_t * );
+static block_t *GetAoutBuffer( decoder_t * );
static block_t *GetSoutBuffer( decoder_t * );
/*****************************************************************************
@@ -395,7 +395,7 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
}
else
{
- aout_buffer_t *p_aout_buffer = GetAoutBuffer( p_dec );
+ block_t *p_aout_buffer = GetAoutBuffer( p_dec );
p_buf = p_aout_buffer ? p_aout_buffer->p_buffer : NULL;
*pp_out_buffer = p_aout_buffer;
}
@@ -406,7 +406,7 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
/*****************************************************************************
* GetAoutBuffer:
*****************************************************************************/
-static aout_buffer_t *GetAoutBuffer( decoder_t *p_dec )
+static block_t *GetAoutBuffer( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
aout_buffer_t *p_buf;
@@ -422,7 +422,12 @@ static aout_buffer_t *GetAoutBuffer( decoder_t *p_dec )
p_buf->end_date =
aout_DateIncrement( &p_sys->end_date, p_sys->i_frame_length );
+#if 0
return p_buf;
+#else
+ decoder_DeleteAudioBuffer( p_dec, p_buf );
+ return NULL;
+#endif
}
/*****************************************************************************
More information about the vlc-commits
mailing list