diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-01-29 19:46:18 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-30 05:41:48 +0300 |
commit | 9ef5a9deaf0f4f44a19efa5bd75df74873096063 (patch) | |
tree | c24d5f9102f0b194554be80892b7e8838ed98ba8 /libavformat/mmst.c | |
parent | 4592c85fc888ed32df2486c04914286f403c3a80 (diff) |
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4)
Diffstat (limited to 'libavformat/mmst.c')
-rw-r--r-- | libavformat/mmst.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavformat/mmst.c b/libavformat/mmst.c index d3417d1659..8464d3b3d1 100644 --- a/libavformat/mmst.c +++ b/libavformat/mmst.c @@ -206,11 +206,11 @@ static int send_media_file_request(MMSTContext *mmst) static void handle_packet_stream_changing_type(MMSTContext *mmst) { MMSContext *mms = &mmst->mms; - dprintf(NULL, "Stream changing!\n"); + av_dlog(NULL, "Stream changing!\n"); // 40 is the packet header size, 7 is the prefix size. mmst->header_packet_id= AV_RL32(mms->in_buffer + 40 + 7); - dprintf(NULL, "Changed header prefix to 0x%x", mmst->header_packet_id); + av_dlog(NULL, "Changed header prefix to 0x%x", mmst->header_packet_id); } static int send_keepalive_packet(MMSTContext *mmst) @@ -270,7 +270,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst) } length_remaining= AV_RL32(mms->in_buffer+8) + 4; - dprintf(NULL, "Length remaining is %d\n", length_remaining); + av_dlog(NULL, "Length remaining is %d\n", length_remaining); // read the rest of the packet. if (length_remaining < 0 || length_remaining > sizeof(mms->in_buffer) - 12) { @@ -350,7 +350,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst) } else if(packet_id_type == mmst->packet_id) { packet_type = SC_PKT_ASF_MEDIA; } else { - dprintf(NULL, "packet id type %d is old.", packet_id_type); + av_dlog(NULL, "packet id type %d is old.", packet_id_type); continue; } } @@ -376,7 +376,7 @@ static int mms_safe_send_recv(MMSTContext *mmst, if(send_fun) { int ret = send_fun(mmst); if (ret < 0) { - dprintf(NULL, "Send Packet error before expecting recv packet %d\n", expect_type); + av_dlog(NULL, "Send Packet error before expecting recv packet %d\n", expect_type); return ret; } } @@ -554,7 +554,7 @@ static int mms_open(URLContext *h, const char *uri, int flags) } err = ff_mms_asf_header_parser(mms); if (err) { - dprintf(NULL, "asf header parsed failed!\n"); + av_dlog(NULL, "asf header parsed failed!\n"); goto fail; } mms->header_parsed = 1; @@ -571,11 +571,11 @@ static int mms_open(URLContext *h, const char *uri, int flags) if (err) { goto fail; } - dprintf(NULL, "Leaving open (success)\n"); + av_dlog(NULL, "Leaving open (success)\n"); return 0; fail: mms_close(h); - dprintf(NULL, "Leaving open (failure: %d)\n", err); + av_dlog(NULL, "Leaving open (failure: %d)\n", err); return err; } @@ -608,12 +608,12 @@ static int mms_read(URLContext *h, uint8_t *buf, int size) // copy the data to the packet buffer. result = ff_mms_read_data(mms, buf, size); if (result == 0) { - dprintf(NULL, "read asf media paket size is zero!\n"); + av_dlog(NULL, "read asf media paket size is zero!\n"); break; } } } else { - dprintf(NULL, "read packet error!\n"); + av_dlog(NULL, "read packet error!\n"); break; } } |