projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
018b6fb
)
Call prot->url_close only if it is present.
author
Alex Beregszaszi
<alex@rtfs.hu>
Fri, 16 Nov 2007 00:14:48 +0000
(
00:14
+0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Fri, 16 Nov 2007 00:14:48 +0000
(
00:14
+0000)
Originally committed as revision 11044 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avio.c
patch
|
blob
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
177e91d
..
793f8ab
100644
(file)
--- a/
libavformat/avio.c
+++ b/
libavformat/avio.c
@@
-132,10
+132,11
@@
offset_t url_seek(URLContext *h, offset_t pos, int whence)
int url_close(URLContext *h)
{
- int ret;
+ int ret
= 0
;
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);
return ret;
}