Revision c60112f2 libavformat/http.c

View differences:

libavformat/http.c
70 70
    int len = strlen(headers);
71 71

  
72 72
    if (len && strcmp("\r\n", headers + len - 2))
73
        av_log(NULL, AV_LOG_ERROR, "No trailing CRLF found in HTTP header.\n");
73
        av_log(h, AV_LOG_ERROR, "No trailing CRLF found in HTTP header.\n");
74 74

  
75 75
    av_strlcpy(s->headers, headers, sizeof(s->headers));
76 76
}
......
232 232
         * don't abort until all headers have been parsed. */
233 233
        if (s->http_code >= 400 && s->http_code < 600 && s->http_code != 401) {
234 234
            end += strspn(end, SPACE_CHARS);
235
            av_log(NULL, AV_LOG_WARNING, "HTTP error %d %s\n",
235
            av_log(h, AV_LOG_WARNING, "HTTP error %d %s\n",
236 236
                   s->http_code, end);
237 237
            return -1;
238 238
        }

Also available in: Unified diff