]> git.sesse.net Git - vlc/commitdiff
* ./modules/demux/mp4: added some DRMS debug statements.
authorJon Lech Johansen <jlj@videolan.org>
Tue, 6 Jan 2004 01:41:10 +0000 (01:41 +0000)
committerJon Lech Johansen <jlj@videolan.org>
Tue, 6 Jan 2004 01:41:10 +0000 (01:41 +0000)
modules/demux/mp4/libmp4.c
modules/demux/mp4/mp4.c

index cb819ed72cc99303fe261b4bd2390433faa0514c..6d4e42bf592c6ba85630d08645844dbc6457b6fb 100644 (file)
@@ -2,7 +2,7 @@
  * libmp4.c : LibMP4 library for mp4 module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: libmp4.c,v 1.40 2004/01/05 12:37:52 jlj Exp $
+ * $Id: libmp4.c,v 1.41 2004/01/06 01:41:10 jlj Exp $
  *
  * Author: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -1215,6 +1215,8 @@ static int MP4_ReadBox_sample_soun( MP4_Stream_t *p_stream, MP4_Box_t *p_box )
 
         if( i_ret )
         {
+            msg_Dbg( p_stream->p_input, "drms_init( UKEY ) failed" );
+
             drms_free( p_box->data.p_sample_soun->p_drms );
             p_box->data.p_sample_soun->p_drms = NULL;
         }
@@ -1983,6 +1985,8 @@ static int MP4_ReadBox_iviv( MP4_Stream_t *p_stream, MP4_Box_t *p_box )
             if( drms_init( p_drms_box->data.p_sample_soun->p_drms,
                            DRMS_INIT_IVIV, p_peek, sizeof(uint32_t) * 4 ) )
             {
+                msg_Dbg( p_stream->p_input, "drms_init( IVIV ) failed" );
+
                 drms_free( p_drms_box->data.p_sample_soun->p_drms );
                 p_drms_box->data.p_sample_soun->p_drms = NULL;
             }
@@ -2008,6 +2012,8 @@ static int MP4_ReadBox_name( MP4_Stream_t *p_stream, MP4_Box_t *p_box )
         if( drms_init( p_drms_box->data.p_sample_soun->p_drms,
                        DRMS_INIT_NAME, p_peek, strlen( p_peek ) ) )
         {
+            msg_Dbg( p_stream->p_input, "drms_init( NAME ) failed" );
+
             drms_free( p_drms_box->data.p_sample_soun->p_drms );
             p_drms_box->data.p_sample_soun->p_drms = NULL;
         }
@@ -2032,6 +2038,8 @@ static int MP4_ReadBox_priv( MP4_Stream_t *p_stream, MP4_Box_t *p_box )
         if( drms_init( p_drms_box->data.p_sample_soun->p_drms,
                        DRMS_INIT_PRIV, p_peek, i_read ) )
         {
+            msg_Dbg( p_stream->p_input, "drms_init( PRIV ) failed" );
+
             drms_free( p_drms_box->data.p_sample_soun->p_drms );
             p_drms_box->data.p_sample_soun->p_drms = NULL;
         }
index e613a50de41c98471a6d6c51a5657eb694f4d0e2..e37c99efde61d3424958410059664c08e18a674f 100644 (file)
@@ -2,7 +2,7 @@
  * mp4.c : MP4 file input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: mp4.c,v 1.48 2004/01/05 13:07:02 zorglub Exp $
+ * $Id: mp4.c,v 1.49 2004/01/06 01:41:10 jlj Exp $
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -1336,6 +1336,9 @@ static void MP4_TrackCreate( input_thread_t *p_input,
     p_track->p_drms = p_drms != NULL ?
         p_drms->data.p_sample_soun->p_drms : NULL;
 
+    msg_Dbg( p_input, "drms%sinitialized",
+             p_track->p_drms == NULL ? " not " : " " );
+
     /* Set language */
     if( strcmp( language, "```" ) && strcmp( language, "und" ) )
     {