diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-01 14:47:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-01 14:47:30 +0200 |
commit | edf96d631c000d1810be42649891bfddb9754427 (patch) | |
tree | e11061b73e6a7b8fd034c296b0e10c47a14d5d9c /libavformat/url.h | |
parent | f89aa6751c0b4c2ff391c34f585d9ea920858adb (diff) | |
download | ffmpeg-edf96d631c000d1810be42649891bfddb9754427.tar.gz |
url: add ffurl_closep() which also sets the context pointer to NULL
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/url.h')
-rw-r--r-- | libavformat/url.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/url.h b/libavformat/url.h index 6ad754e19f..82f42e8c59 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -179,11 +179,12 @@ int64_t ffurl_seek(URLContext *h, int64_t pos, int whence); /** * Close the resource accessed by the URLContext h, and free the - * memory used by it. + * memory used by it. Also set the URLContext pointer to NULL. * * @return a negative value if an error condition occurred, 0 * otherwise */ +int ffurl_closep(URLContext **h); int ffurl_close(URLContext *h); /** |