}
}
av_freep(&protocols);
+ if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL))
+ av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with "
+ "openssl, gnutls or securetransport enabled.\n");
return NULL;
}
return url_alloc_for_protocol(puc, p, filename, flags, int_cb);
*puc = NULL;
- if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL))
- av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with "
- "openssl, gnutls "
- "or securetransport enabled.\n");
return AVERROR_PROTOCOL_NOT_FOUND;
}
if (!ret)
return 0;
fail:
- ffurl_close(*puc);
- *puc = NULL;
+ ffurl_closep(puc);
return ret;
}
int ff_check_interrupt(AVIOInterruptCB *cb)
{
- int ret;
- if (cb && cb->callback && (ret = cb->callback(cb->opaque)))
- return ret;
+ if (cb && cb->callback)
+ return cb->callback(cb->opaque);
return 0;
}