]> git.sesse.net Git - vlc/blobdiff - modules/codec/cmml/history.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / codec / cmml / history.c
index f1cb6d735ed79b814243b40003de222b197659dc..1b80c8c6c3fcb87abf0f49b8e310b3c3fd1c0ed8 100644 (file)
@@ -25,6 +25,7 @@
  *****************************************************************************/
 
 #include <vlc/vlc.h>
+#include <vlc_input.h>
 
 #include "history.h"
 
@@ -52,7 +53,7 @@ static void history_Dump( history_t *p_history );
 history_t *history_New( void )
 {
    history_t *p_new_history;
-   
    p_new_history = calloc( 1, sizeof( struct history_t ) );
    if( p_new_history == NULL ) return NULL;
 
@@ -113,8 +114,12 @@ static void history_Dump( history_t *p_history )
         if( p_item == NULL )
             fprintf( stderr, "HISTORY: [%d] NULL\n", i );
         else
+        {
+            char *psz_uri = input_item_GetURI( p_item );
             fprintf( stderr, "HISTORY: [%d] %p (%p->%s)\n", i, p_item,
-                     p_item->psz_uri, p_item->psz_uri );
+                     psz_uri, psz_uri );
+            free( psz_uri );
+        }
     }
 }