From 9149e2af568d4cb251f8b105f360c3e6b9fd9d86 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 20:15:47 +0100 Subject: playlist_parser: mp_msg conversion --- common/playlist_parser.c | 86 ++++++++++++++++++++++++++---------------------- 1 file changed, 46 insertions(+), 40 deletions(-) (limited to 'common/playlist_parser.c') diff --git a/common/playlist_parser.c b/common/playlist_parser.c index af249f4aa5..ee5fe07b91 100644 --- a/common/playlist_parser.c +++ b/common/playlist_parser.c @@ -40,6 +40,7 @@ #include "playlist_parser.h" #include "stream/stream.h" #include "demux/demux.h" +#include "common/global.h" #include "common/msg.h" #include "options/path.h" @@ -54,6 +55,7 @@ typedef struct play_tree_parser { int buffer_size , buffer_end; int keep; struct playlist *pl; + struct mp_log *log; } play_tree_parser_t; static void @@ -178,7 +180,7 @@ static bool parse_asx(play_tree_parser_t* p) { int comments = 0,get_line = 1; char* line = NULL; - mp_msg(MSGT_PLAYTREE,MSGL_V,"Trying asx...\n"); + MP_VERBOSE(p, "Trying asx...\n"); while(1) { if(get_line) { @@ -191,8 +193,8 @@ static bool parse_asx(play_tree_parser_t* p) { } if(!comments) { if(line[0] != '<') { - mp_msg(MSGT_PLAYTREE,MSGL_DBG2,"First char isn't '<' but '%c'\n",line[0]); - mp_msg(MSGT_PLAYTREE,MSGL_DBG3,"Buffer = [%s]\n",p->buffer); + MP_DBG(p, "First char isn't '<' but '%c'\n",line[0]); + MP_TRACE(p, "Buffer = [%s]\n",p->buffer); return false; } else if(strncmp(line,"