static int url_connect(struct playlist *pls, AVDictionary *opts, AVDictionary *opts2)

{

    AVDictionary *tmp = NULL;

    int ret;



    av_dict_copy(&tmp, opts, 0);

    av_dict_copy(&tmp, opts2, 0);



    av_opt_set_dict(pls->input, &tmp);



    if ((ret = ffurl_connect(pls->input, NULL)) < 0) {

        ffurl_close(pls->input);

        pls->input = NULL;

    }



    av_dict_free(&tmp);

    return ret;

}

static int url_connect(struct playlist *pls, AVDictionary *opts, AVDictionary *opts2)

{

    AVDictionary *tmp = NULL;

    int ret;



    av_dict_copy(&tmp, opts, 0);

    av_dict_copy(&tmp, opts2, 0);



    av_opt_set_dict(pls->input, &tmp);



    if ((ret = ffurl_connect(pls->input, NULL)) < 0) {

        ffurl_close(pls->input);

        pls->input = NULL;

    }



    av_dict_free(&tmp);

    return ret;

}

    av_opt_set_dict(pls->input, &tmp);
static int FUNC_0(struct playlist *VAR_0, AVDictionary *VAR_1, AVDictionary *VAR_2)

{

    AVDictionary *tmp = NULL;

    int VAR_3;



    av_dict_copy(&tmp, VAR_1, 0);

    av_dict_copy(&tmp, VAR_2, 0);



    av_opt_set_dict(VAR_0->input, &tmp);



    if ((VAR_3 = ffurl_connect(VAR_0->input, NULL)) < 0) {

        ffurl_close(VAR_0->input);

        VAR_0->input = NULL;

    }



    av_dict_free(&tmp);

    return VAR_3;

}

static int FUNC_0(struct playlist *VAR_0, AVDictionary *VAR_1, AVDictionary *VAR_2)
{ AVDictionary *tmp = NULL; int VAR_3; av_dict_copy(&tmp, VAR_1, 0); av_dict_copy(&tmp, VAR_2, 0); av_opt_set_dict(VAR_0->input, &tmp); if ((VAR_3 = ffurl_connect(VAR_0->input, NULL)) < 0) { ffurl_close(VAR_0->input); VAR_0->input = NULL; } av_dict_free(&tmp); return VAR_3; }