forked from FFmpeg/FFmpeg
Call prot->url_close only if it is present.
Originally committed as revision 11044 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
018b6fb465
commit
7a813b368a
1 changed files with 3 additions and 2 deletions
|
@ -132,10 +132,11 @@ offset_t url_seek(URLContext *h, offset_t pos, int whence)
|
||||||
|
|
||||||
int url_close(URLContext *h)
|
int url_close(URLContext *h)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = 0;
|
||||||
if (!h) return 0; /* can happen when url_open fails */
|
if (!h) return 0; /* can happen when url_open fails */
|
||||||
|
|
||||||
ret = h->prot->url_close(h);
|
if (h->prot->url_close)
|
||||||
|
ret = h->prot->url_close(h);
|
||||||
av_free(h);
|
av_free(h);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue