diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-02-10 00:59:30 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-20 17:43:19 +0100 |
commit | 7be245498b1d0a1b11cebad6a3a0a4ab0e9a846a (patch) | |
tree | cf8bdc1453b74d75443cda43f9a997903da950a5 /libavformat | |
parent | 5247c4328bb96d1b4e2953eef722833c8dbde358 (diff) | |
download | ffmpeg-7be245498b1d0a1b11cebad6a3a0a4ab0e9a846a.tar.gz |
lavf/http: Print metadata updates with -loglevel verbose.
Simplifies metadata debugging.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/http.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index ed0eb1c875..74d743850d 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1504,12 +1504,13 @@ static int http_read_stream_all(URLContext *h, uint8_t *buf, int size) return pos; } -static void update_metadata(HTTPContext *s, char *data) +static void update_metadata(URLContext *h, char *data) { char *key; char *val; char *end; char *next = data; + HTTPContext *s = h->priv_data; while (*next) { key = next; @@ -1525,6 +1526,7 @@ static void update_metadata(HTTPContext *s, char *data) val += 2; av_dict_set(&s->metadata, key, val, 0); + av_log(h, AV_LOG_VERBOSE, "Metadata update for %s: %s\n", key, val); next = end + 2; } @@ -1559,7 +1561,7 @@ static int store_icy(URLContext *h, int size) data[len + 1] = 0; if ((ret = av_opt_set(s, "icy_metadata_packet", data, 0)) < 0) return ret; - update_metadata(s, data); + update_metadata(h, data); } s->icy_data_read = 0; remaining = s->icy_metaint; |