[vlc-devel] commit: Cosmetics (Fixed mix up between 0 and NULL). (Laurent Aimar )
git version control
git at videolan.org
Wed Aug 27 13:45:08 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Aug 27 13:24:02 2008 +0200| [dc977392562adad0f1df7ad1c838b26bd9a8798f] | committer: Laurent Aimar
Cosmetics (Fixed mix up between 0 and NULL).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dc977392562adad0f1df7ad1c838b26bd9a8798f
---
src/input/decoder.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index fafb439..0544da0 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -446,11 +446,11 @@ static decoder_t * CreateDecoder( input_thread_t *p_input,
if( p_dec == NULL )
return NULL;
- p_dec->pf_decode_audio = 0;
- p_dec->pf_decode_video = 0;
- p_dec->pf_decode_sub = 0;
- p_dec->pf_get_cc = 0;
- p_dec->pf_packetize = 0;
+ p_dec->pf_decode_audio = NULL;
+ p_dec->pf_decode_video = NULL;
+ p_dec->pf_decode_sub = NULL;
+ p_dec->pf_get_cc = NULL;
+ p_dec->pf_packetize = NULL;
/* Initialize the decoder fifo */
p_dec->p_module = NULL;
@@ -605,7 +605,7 @@ static void* DecoderThread( vlc_object_t *p_this )
* same thread than open()/decode() */
module_Unneed( p_dec, p_dec->p_module );
- return 0;
+ return NULL;
}
static inline void DecoderUpdatePreroll( int64_t *pi_preroll, const block_t *p )
@@ -901,7 +901,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
block_t *p_sout_block;
while( ( p_sout_block =
- p_dec->pf_packetize( p_dec, p_block ? &p_block : 0 ) ) )
+ p_dec->pf_packetize( p_dec, p_block ? &p_block : NULL ) ) )
{
if( !p_dec->p_owner->p_sout_input )
{
@@ -1124,7 +1124,7 @@ static void DeleteDecoder( decoder_t * p_dec )
#undef p_pic
/* We are about to die. Reattach video output to p_vlc. */
- vout_Request( p_dec, p_dec->p_owner->p_vout, 0 );
+ vout_Request( p_dec, p_dec->p_owner->p_vout, NULL );
}
#ifdef ENABLE_SOUT
More information about the vlc-devel
mailing list