mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
http: do not print a warning message for expired cookies
libavformat prints a warning that the cookie couldn't be parsed (see callers of parse_cookie()). This is obviously not true - it could be parsed, but was simply ignored. Don't return an error to avoid the warning.
This commit is contained in:
parent
4b86ac27a0
commit
39c1d170a3
@ -802,7 +802,7 @@ static int parse_cookie(HTTPContext *s, const char *p, AVDictionary **cookies)
|
||||
// if the cookie has already expired ignore it
|
||||
if (av_timegm(&new_tm) < av_gettime() / 1000000) {
|
||||
av_dict_free(&new_params);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// only replace an older cookie with the same name
|
||||
|
Loading…
Reference in New Issue
Block a user