diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-23 19:34:06 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-23 19:34:06 +0000 |
commit | e1437c6af876090b3e61c05a29c39adcce1fcd48 (patch) | |
tree | 2ccee9fc2b9862003b7c41ceb192df4fc634b9ca /libmpdemux | |
parent | 67d4bff07e9e789e5f988d653a904d03ab7fb90d (diff) | |
download | mpv-e1437c6af876090b3e61c05a29c39adcce1fcd48.tar.bz2 mpv-e1437c6af876090b3e61c05a29c39adcce1fcd48.tar.xz |
some printf() to mp_msg() replacements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18796 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/realrtsp/rtsp_session.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libmpdemux/realrtsp/rtsp_session.c b/libmpdemux/realrtsp/rtsp_session.c index 71451b5bd5..185ef6c517 100644 --- a/libmpdemux/realrtsp/rtsp_session.c +++ b/libmpdemux/realrtsp/rtsp_session.c @@ -41,6 +41,7 @@ #include <string.h> #include <inttypes.h> +#include "mp_msg.h" #include "rtsp.h" #include "rtsp_session.h" #include "real.h" @@ -76,7 +77,7 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, i rtsp_session->s=rtsp_connect(fd,*mrl,path,host,port,NULL); if (!rtsp_session->s) { - printf("rtsp_session: failed to connect to server %s\n", path); + mp_msg (MSGT_OPEN, MSGL_ERR,"rtsp_session: failed to connect to server %s\n", path); free(rtsp_session); return NULL; } @@ -101,7 +102,7 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, i { free(mrl_line); mrl_line=strdup(rtsp_search_answers(rtsp_session->s, "Location")); - printf("rtsp_session: redirected to %s\n", mrl_line); + mp_msg (MSGT_OPEN, MSGL_INFO,"rtsp_session: redirected to %s\n", mrl_line); rtsp_close(rtsp_session->s); free(server); free(*mrl); @@ -113,7 +114,7 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, i // goto connect; /* *shudder* i made a design mistake somewhere */ } else { - printf("rtsp_session: session can not be established.\n"); + mp_msg (MSGT_OPEN, MSGL_ERR,"rtsp_session: session can not be established.\n"); rtsp_close(rtsp_session->s); free (server); free(rtsp_session); @@ -135,7 +136,7 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, i rtsp_session->real_session->recv_read = 0; } else { - printf("rtsp_session: Not a Real server. Server type is '%s'.\n",server); + mp_msg (MSGT_OPEN, MSGL_ERR,"rtsp_session: Not a Real server. Server type is '%s'.\n",server); rtsp_close(rtsp_session->s); free(server); free(rtsp_session); @@ -171,7 +172,7 @@ int rtsp_session_read (rtsp_session_t *this, char *data, int len) { if (this->real_session->recv_size == 0) { #ifdef LOG - printf ("librtsp: %d of %d bytes provided\n", len-to_copy, len); + mp_msg (MSGT_OPEN, MSGL_INFO, "librtsp: %d of %d bytes provided\n", len-to_copy, len); #endif return len-to_copy; } @@ -181,7 +182,7 @@ int rtsp_session_read (rtsp_session_t *this, char *data, int len) { this->real_session->recv_read += to_copy; #ifdef LOG - printf ("librtsp: %d bytes provided\n", len); + mp_msg (MSGT_OPEN, MSGL_INFO, "librtsp: %d bytes provided\n", len); #endif return len; |