请大家帮我看下这段代码!为什么会无法返回?
下面的代码是ffserver里面的部分片段;
现在问题是程序执行到这个函数里面就卡住了,求解。
URLContext 为一个包含URLProtocol *prot结构的结构指针;
URLProtocol 结构中有一个函数指针url_close如下。
int url_close(URLContext *h)
{
int ret;
printf("url_close\n");
ret = h->prot->url_close(h);
av_free(h);
printf("url_close return\n");
return ret;
}
如果调用url_close(h);请问这个为什么在ret = h->prot->url_close(h);这句不返回呢?