diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-01-29 17:46:18 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-01-29 23:55:37 +0100 |
commit | dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4 (patch) | |
tree | 21b297b37ea12443540479d44fadbc1a54f32f00 /libavformat/mmst.c | |
parent | 243f8241dbf4a451e1197661ccd387c519ae3349 (diff) | |
download | ffmpeg-dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4.tar.gz |
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
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; } } |