diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-08-30 07:14:27 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-09-06 10:26:16 +0800 |
commit | 6c593fee6335b8dda62eaa54d40504aa366b0696 (patch) | |
tree | 67eedd5b1b1417feb78252d54405ca354ca038ee /libavformat/http.h | |
parent | 2b66c757d6aa3a9feee4d25b587becd366c868f1 (diff) | |
download | ffmpeg-streaming-6c593fee6335b8dda62eaa54d40504aa366b0696.zip ffmpeg-streaming-6c593fee6335b8dda62eaa54d40504aa366b0696.tar.gz |
avformat/http: add ff_http_get_shutdown_status api for check the status of shutdown
this function is used to get the previous shutdown status
when reusing the old connection in block mode.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/http.h')
-rw-r--r-- | libavformat/http.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/http.h b/libavformat/http.h index 7d02713..662bd2c 100644 --- a/libavformat/http.h +++ b/libavformat/http.h @@ -38,6 +38,15 @@ void ff_http_init_auth_state(URLContext *dest, const URLContext *src); /** + * Get the HTTP shutdown response status, be used after http_shutdown. + * + * @param h pointer to the resource + * @return a negative value if an error condition occurred, 0 + * otherwise + */ +int ff_http_get_shutdown_status(URLContext *h); + +/** * Send a new HTTP request, reusing the old connection. * * @param h pointer to the resource |