[vlc-devel] commit: stream_out/description.c: Add some debug msg to better track down an assertion failure. (Pierre d' Herbemont )

git version control git at videolan.org
Tue Apr 22 15:51:41 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Apr 22 15:40:57 2008 +0200| [303288a2dda861a56b80b7bf5c38530d8e4a6da1]

stream_out/description.c: Add some debug msg to better track down an assertion failure.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=303288a2dda861a56b80b7bf5c38530d8e4a6da1
---

 modules/stream_out/description.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/stream_out/description.c b/modules/stream_out/description.c
index 85241e5..4ea2395 100644
--- a/modules/stream_out/description.c
+++ b/modules/stream_out/description.c
@@ -96,6 +96,8 @@ static void Close( vlc_object_t *p_this )
     sout_stream_t *p_stream = (sout_stream_t *)p_this;
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
+    msg_Dbg( p_this, "description: Closing the module" );
+
     /* It can happen only if buggy */
     assert( !p_sys->p_input );
 
@@ -104,6 +106,7 @@ static void Close( vlc_object_t *p_this )
 
 static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
 {
+    __msg_Dbg( NULL, "description: Adding a stream" );
     sout_stream_sys_t *p_sys = p_stream->p_sys;
     sout_stream_id_t *id;
     es_format_t *p_fmt_copy;
@@ -136,6 +139,8 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
 {
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
+    __msg_Dbg( NULL, "description: Removing a stream (id:%d)", p_sys->i_id );
+
     p_sys->i_id--;
     if( p_sys->i_id <= 0 )
     {




More information about the vlc-devel mailing list