From: Steven Liu <lq@chinaffmpeg.org> To: ffmpeg-devel@ffmpeg.org Cc: Steven Liu <lq@chinaffmpeg.org>, Steven Liu <liuqi05@kuaishou.com> Subject: [FFmpeg-devel] [PATCH] avformat/http: remove unused function ff_http_get_shutdown_status Date: Sun, 8 May 2022 07:51:08 +0800 Message-ID: <20220507235108.27709-1-lq@chinaffmpeg.org> (raw) From: Steven Liu <liuqi05@kuaishou.com> ff_http_get_shutdown_status is unused after ticket 9010 fixed. Signed-off-by: Steven Liu <lq@chinaffmpeg.org> --- libavformat/http.c | 15 --------------- libavformat/http.h | 9 --------- 2 files changed, 24 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index c4eeb58cd0..c8f3f4b6a3 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -441,21 +441,6 @@ fail: return ret; return ff_http_averror(s->http_code, AVERROR(EIO)); } -int ff_http_get_shutdown_status(URLContext *h) -{ - int ret = 0; - HTTPContext *s = h->priv_data; - - /* flush the receive buffer when it is write only mode */ - char buf[1024]; - int read_ret; - read_ret = ffurl_read(s->hd, buf, sizeof(buf)); - if (read_ret < 0) { - ret = read_ret; - } - - return ret; -} int ff_http_do_new_request(URLContext *h, const char *uri) { return ff_http_do_new_request2(h, uri, NULL); diff --git a/libavformat/http.h b/libavformat/http.h index 5557ce9b58..5f650ef143 100644 --- a/libavformat/http.h +++ b/libavformat/http.h @@ -37,15 +37,6 @@ */ 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. * -- 2.29.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
reply other threads:[~2022-05-07 23:53 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220507235108.27709-1-lq@chinaffmpeg.org \ --to=lq@chinaffmpeg.org \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=liuqi05@kuaishou.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git