aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mmst.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-03-16 08:57:35 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-19 12:41:59 +0100
commit1a3eb042c704dea190c644def5b32c9cee8832b8 (patch)
tree16244f5b8bb59a8f09d1b740167389c25df5da19 /libavformat/mmst.c
parentc253340ae6f74ffd8798bbd476e46d1b33a2d56e (diff)
downloadffmpeg-1a3eb042c704dea190c644def5b32c9cee8832b8.tar.gz
Replace av_dlog with normal av_log at trace level
This applies to every library where performance is not critical.
Diffstat (limited to 'libavformat/mmst.c')
-rw-r--r--libavformat/mmst.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index d45f7ba83b..b2d9a0d3b8 100644
--- a/libavformat/mmst.c
+++ b/libavformat/mmst.c
@@ -208,11 +208,11 @@ static int send_media_file_request(MMSTContext *mmst)
static void handle_packet_stream_changing_type(MMSTContext *mmst)
{
MMSContext *mms = &mmst->mms;
- av_dlog(NULL, "Stream changing!\n");
+ av_log(NULL, AV_LOG_TRACE, "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);
- av_dlog(NULL, "Changed header prefix to 0x%x", mmst->header_packet_id);
+ av_log(NULL, AV_LOG_TRACE, "Changed header prefix to 0x%x", mmst->header_packet_id);
}
static int send_keepalive_packet(MMSTContext *mmst)
@@ -272,7 +272,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst)
}
length_remaining= AV_RL32(mms->in_buffer+8) + 4;
- av_dlog(NULL, "Length remaining is %d\n", length_remaining);
+ av_log(NULL, AV_LOG_TRACE, "Length remaining is %d\n", length_remaining);
// read the rest of the packet.
if (length_remaining < 0
|| length_remaining > sizeof(mms->in_buffer) - 12) {
@@ -351,7 +351,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst)
} else if(packet_id_type == mmst->packet_id) {
packet_type = SC_PKT_ASF_MEDIA;
} else {
- av_dlog(NULL, "packet id type %d is old.", packet_id_type);
+ av_log(NULL, AV_LOG_TRACE, "packet id type %d is old.", packet_id_type);
continue;
}
}
@@ -377,7 +377,7 @@ static int mms_safe_send_recv(MMSTContext *mmst,
if(send_fun) {
int ret = send_fun(mmst);
if (ret < 0) {
- av_dlog(NULL, "Send Packet error before expecting recv packet %d\n", expect_type);
+ av_log(NULL, AV_LOG_TRACE, "Send Packet error before expecting recv packet %d\n", expect_type);
return ret;
}
}
@@ -552,7 +552,7 @@ static int mms_open(URLContext *h, const char *uri, int flags)
}
err = ff_mms_asf_header_parser(mms);
if (err) {
- av_dlog(NULL, "asf header parsed failed!\n");
+ av_log(NULL, AV_LOG_TRACE, "asf header parsed failed!\n");
goto fail;
}
mms->header_parsed = 1;
@@ -569,11 +569,11 @@ static int mms_open(URLContext *h, const char *uri, int flags)
if (err) {
goto fail;
}
- av_dlog(NULL, "Leaving open (success)\n");
+ av_log(NULL, AV_LOG_TRACE, "Leaving open (success)\n");
return 0;
fail:
mms_close(h);
- av_dlog(NULL, "Leaving open (failure: %d)\n", err);
+ av_log(NULL, AV_LOG_TRACE, "Leaving open (failure: %d)\n", err);
return err;
}
@@ -606,12 +606,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) {
- av_dlog(NULL, "Read ASF media packet size is zero!\n");
+ av_log(NULL, AV_LOG_TRACE, "Read ASF media packet size is zero!\n");
break;
}
}
} else {
- av_dlog(NULL, "read packet error!\n");
+ av_log(NULL, AV_LOG_TRACE, "read packet error!\n");
break;
}
}