diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-01-29 17:46:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-30 03:41:48 +0100 |
commit | 9ef5a9deaf0f4f44a19efa5bd75df74873096063 (patch) | |
tree | c24d5f9102f0b194554be80892b7e8838ed98ba8 /libavformat/mmsh.c | |
parent | 4592c85fc888ed32df2486c04914286f403c3a80 (diff) | |
download | ffmpeg-9ef5a9deaf0f4f44a19efa5bd75df74873096063.tar.gz |
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4)
Diffstat (limited to 'libavformat/mmsh.c')
-rw-r--r-- | libavformat/mmsh.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c index b0acd1020f..257b973225 100644 --- a/libavformat/mmsh.c +++ b/libavformat/mmsh.c @@ -122,7 +122,7 @@ static int read_data_packet(MMSHContext *mmsh, const int len) return AVERROR(EIO); } res = url_read_complete(mms->mms_hd, mms->in_buffer, len); - dprintf(NULL, "Data packet len = %d\n", len); + av_dlog(NULL, "Data packet len = %d\n", len); if (res != len) { av_log(NULL, AV_LOG_ERROR, "Read data packet failed!\n"); return AVERROR(EIO); @@ -156,7 +156,7 @@ static int get_http_header_data(MMSHContext *mmsh) if (mms->asf_header) { if (len != mms->asf_header_size) { mms->asf_header_size = len; - dprintf(NULL, "Header len changed from %d to %d\n", + av_dlog(NULL, "Header len changed from %d to %d\n", mms->asf_header_size, len); av_freep(&mms->asf_header); } @@ -201,7 +201,7 @@ static int get_http_header_data(MMSHContext *mmsh) av_log(NULL, AV_LOG_ERROR, "Read other chunk type data failed!\n"); return AVERROR(EIO); } else { - dprintf(NULL, "Skip chunk type %d \n", chunk_type); + av_dlog(NULL, "Skip chunk type %d \n", chunk_type); continue; } } @@ -290,7 +290,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) av_log(NULL, AV_LOG_ERROR, "Build play request failed!\n"); goto fail; } - dprintf(NULL, "out_buffer is %s", headers); + av_dlog(NULL, "out_buffer is %s", headers); ff_http_set_headers(mms->mms_hd, headers); err = url_connect(mms->mms_hd); @@ -304,12 +304,12 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) goto fail; } - dprintf(NULL, "Connection successfully open\n"); + av_dlog(NULL, "Connection successfully open\n"); return 0; fail: av_freep(&stream_selection); mmsh_close(h); - dprintf(NULL, "Connection failed with error %d\n", err); + av_dlog(NULL, "Connection failed with error %d\n", err); return err; } |