diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-16 08:57:35 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-19 12:41:59 +0100 |
commit | 1a3eb042c704dea190c644def5b32c9cee8832b8 (patch) | |
tree | 16244f5b8bb59a8f09d1b740167389c25df5da19 /libavformat/rtspdec.c | |
parent | c253340ae6f74ffd8798bbd476e46d1b33a2d56e (diff) | |
download | ffmpeg-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/rtspdec.c')
-rw-r--r-- | libavformat/rtspdec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index bb9c67473a..4b4ae9c794 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -113,7 +113,7 @@ static int rtsp_send_reply(AVFormatContext *s, enum RTSPStatusCode code, if (extracontent) av_strlcat(message, extracontent, sizeof(message)); av_strlcat(message, "\r\n", sizeof(message)); - av_dlog(s, "Sending response:\n%s", message); + av_log(s, AV_LOG_TRACE, "Sending response:\n%s", message); ffurl_write(rt->rtsp_hd_out, message, strlen(message)); return 0; @@ -149,7 +149,7 @@ static inline int rtsp_read_request(AVFormatContext *s, if (ret) return ret; if (rbuflen > 1) { - av_dlog(s, "Parsing[%d]: %s\n", rbuflen, rbuf); + av_log(s, AV_LOG_TRACE, "Parsing[%d]: %s\n", rbuflen, rbuf); ff_rtsp_parse_line(request, rbuf, rt, method); } } while (rbuflen > 0); @@ -292,7 +292,7 @@ static int rtsp_read_setup(AVFormatContext *s, char* host, char *controlurl) snprintf(buf, sizeof(buf), "%d", rt->buffer_size); av_dict_set(&opts, "buffer_size", buf, 0); ff_url_join(url, sizeof(url), "rtp", NULL, host, localport, NULL); - av_dlog(s, "Opening: %s", url); + av_log(s, AV_LOG_TRACE, "Opening: %s", url); ret = ffurl_open(&rtsp_st->rtp_handle, url, AVIO_FLAG_READ_WRITE, &s->interrupt_callback, &opts); av_dict_free(&opts); @@ -304,7 +304,7 @@ static int rtsp_read_setup(AVFormatContext *s, char* host, char *controlurl) return ret; } - av_dlog(s, "Listening on: %d", + av_log(s, AV_LOG_TRACE, "Listening on: %d", ff_rtp_get_local_rtp_port(rtsp_st->rtp_handle)); if ((ret = ff_rtsp_open_transport_ctx(s, rtsp_st))) { rtsp_send_reply(s, RTSP_STATUS_TRANSPORT, NULL, request.seq); @@ -750,7 +750,7 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, int id, len, i, ret; RTSPStream *rtsp_st; - av_dlog(s, "tcp_read_packet:\n"); + av_log(s, AV_LOG_TRACE, "tcp_read_packet:\n"); redo: for (;;) { RTSPMessageHeader reply; @@ -769,7 +769,7 @@ redo: return -1; id = buf[0]; len = AV_RB16(buf + 1); - av_dlog(s, "id=%d len=%d\n", id, len); + av_log(s, AV_LOG_TRACE, "id=%d len=%d\n", id, len); if (len > buf_size || len < 12) goto redo; /* get the data */ |