[vlc-devel] commit: input: Output a debug message at input creation/destruction. ( Pierre d'Herbemont )
git version control
git at videolan.org
Mon Jul 7 00:04:40 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon Jul 7 00:06:53 2008 +0200| [967528700bae01cf16057a5ec1863bb7cafb8d1c]
input: Output a debug message at input creation/destruction.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=967528700bae01cf16057a5ec1863bb7cafb8d1c
---
src/input/input.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 071bf48..c2a6dcf 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -138,6 +138,9 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
char * psz_name = input_item_GetName( p_item );
snprintf( psz_timer_name, sizeof(psz_timer_name),
"input launching for '%s'", psz_name );
+
+ msg_Dbg( p_input, "Creating an input for '%s'", psz_name);
+
free( psz_name );
/* Start a timer to mesure how long it takes
@@ -311,6 +314,12 @@ static void Destructor( input_thread_t * p_input )
{
input_thread_private_t *priv = p_input->p;
+#ifndef NDEBUG
+ char * psz_name = input_item_GetName( p_input->p->input.p_item );
+ msg_Dbg( p_input, "Destroying the input for '%s'", psz_name);
+ free( psz_name );
+#endif
+
vlc_event_manager_fini( &p_input->p->event_manager );
stats_TimerDump( p_input, STATS_TIMER_INPUT_LAUNCHING );
More information about the vlc-devel
mailing list