int ff_http_do_new_request(URLContext *h, const char *uri)
{
    HTTPContext *s = h->priv_data;
    AVDictionary *options = NULL;
    int ret;
    ret = http_shutdown(h, h->flags);
    if (ret < 0)
        return ret;
    s->end_chunked_post = 0;
    s->chunkend      = 0;
    s->off           = 0;
    s->icy_data_read = 0;
    av_free(s->location);
    s->location = av_strdup(uri);
    if (!s->location)
        return AVERROR(ENOMEM);
    ret = http_open_cnx(h, &options);
    av_dict_free(&options);
    return ret;
int ff_http_do_new_request(URLContext *h, const char *uri)
{
    HTTPContext *s = h->priv_data;
    AVDictionary *options = NULL;
    int ret;
    ret = http_shutdown(h, h->flags);
    if (ret < 0)
        return ret;
    s->end_chunked_post = 0;
    s->chunkend      = 0;
    s->off           = 0;
    s->icy_data_read = 0;
    av_free(s->location);
    s->location = av_strdup(uri);
    if (!s->location)
        return AVERROR(ENOMEM);
    ret = http_open_cnx(h, &options);
    av_dict_free(&options);
    return ret;
int FUNC_0(URLContext *VAR_0, const char *VAR_1)
{
    HTTPContext *s = VAR_0->priv_data;
    AVDictionary *options = NULL;
    int VAR_2;
    VAR_2 = http_shutdown(VAR_0, VAR_0->flags);
    if (VAR_2 < 0)
        return VAR_2;
    s->end_chunked_post = 0;
    s->chunkend      = 0;
    s->off           = 0;
    s->icy_data_read = 0;
    av_free(s->location);
    s->location = av_strdup(VAR_1);
    if (!s->location)
        return AVERROR(ENOMEM);
    VAR_2 = http_open_cnx(VAR_0, &options);
    av_dict_free(&options);
    return VAR_2;
int FUNC_0(URLContext *VAR_0, const char *VAR_1)
{ HTTPContext *s = VAR_0->priv_data; AVDictionary *options = NULL; int VAR_2; VAR_2 = http_shutdown(VAR_0, VAR_0->flags); if (VAR_2 < 0)
return VAR_2; s->end_chunked_post = 0; s->chunkend      = 0; s->off           = 0; s->icy_data_read = 0; av_free(s->location); s->location = av_strdup(VAR_1); if (!s->location)
return AVERROR(ENOMEM); VAR_2 = http_open_cnx(VAR_0, &options); av_dict_free(&options); return VAR_2;