diff options
Diffstat (limited to 'libmpdemux/cdinfo.c')
-rw-r--r-- | libmpdemux/cdinfo.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libmpdemux/cdinfo.c b/libmpdemux/cdinfo.c index edb811314d..53cc019ec3 100644 --- a/libmpdemux/cdinfo.c +++ b/libmpdemux/cdinfo.c @@ -11,7 +11,8 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> - +#include "mp_msg.h" +#include "help_mp.h" #include "cdd.h" /******************************************************************************************************************* @@ -26,7 +27,7 @@ cd_info_new() { cd_info = (cd_info_t*)malloc(sizeof(cd_info_t)); if( cd_info==NULL ) { - printf("Memory allocation failed\n"); + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_MemAllocFailed); return NULL; } @@ -60,14 +61,14 @@ cd_info_add_track(cd_info_t *cd_info, char *track_name, unsigned int track_nb, u cd_track = (cd_track_t*)malloc(sizeof(cd_track_t)); if( cd_track==NULL ) { - printf("Memory allocation failed\n"); + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_MemAllocFailed); return NULL; } memset(cd_track, 0, sizeof(cd_track_t)); cd_track->name = (char*)malloc(strlen(track_name)+1); if( cd_track->name==NULL ) { - printf("Memory allocation failed\n"); + mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_MemAllocFailed); free(cd_track); return NULL; } |