Commit b529170c authored by Jean-Paul Saman's avatar Jean-Paul Saman

Cleanup and move debug message to a better place.

parent fb0c52f6
...@@ -83,7 +83,6 @@ struct decoder_sys_t ...@@ -83,7 +83,6 @@ struct decoder_sys_t
decoder_synchro_t *p_synchro; decoder_synchro_t *p_synchro;
int i_aspect; int i_aspect;
mtime_t i_last_frame_pts; mtime_t i_last_frame_pts;
}; };
/***************************************************************************** /*****************************************************************************
...@@ -118,7 +117,6 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -118,7 +117,6 @@ static int OpenDecoder( vlc_object_t *p_this )
uint32_t i_accel = 0; uint32_t i_accel = 0;
FILE *f_wd_dec; FILE *f_wd_dec;
msg_Dbg(p_dec, "OpenDecoder Entering");
#ifdef __GLIBC__ #ifdef __GLIBC__
mtrace(); mtrace();
#endif #endif
...@@ -135,13 +133,12 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -135,13 +133,12 @@ static int OpenDecoder( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
msg_Dbg(p_dec, "OpenDecoder Entering");
/* Allocate the memory needed to store the decoder's structure */ /* Allocate the memory needed to store the decoder's structure */
p_dec->p_sys = p_sys = (decoder_sys_t *)malloc(sizeof(decoder_sys_t)); p_dec->p_sys = p_sys = (decoder_sys_t *)malloc(sizeof(decoder_sys_t));
if( !p_sys ) if( !p_sys )
{ return VLC_ENOMEM;
msg_Err( p_dec, "out of memory" );
return VLC_EGENERIC;
}
/* Initialize the thread properties */ /* Initialize the thread properties */
memset( p_sys, 0, sizeof(decoder_sys_t) ); memset( p_sys, 0, sizeof(decoder_sys_t) );
...@@ -203,7 +200,6 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -203,7 +200,6 @@ static int OpenDecoder( vlc_object_t *p_this )
p_dec->pf_decode_video = DecodeBlock; p_dec->pf_decode_video = DecodeBlock;
f_wd_dec = fopen("/vlc/dec_pid", "w"); f_wd_dec = fopen("/vlc/dec_pid", "w");
if (f_wd_dec != NULL) if (f_wd_dec != NULL)
{ {
fprintf(f_wd_dec, "%d\n", getpid()); fprintf(f_wd_dec, "%d\n", getpid());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment