[FFmpeg-cvslog] http: Remove the now unused ff_http_set_headers custom function

Martin Storsjö git at videolan.org
Fri Nov 11 02:53:04 CET 2011


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Nov  7 11:46:29 2011 +0200| [7590061eb728f437a968989edf69fb7bf3fa67c3] | committer: Martin Storsjö

http: Remove the now unused ff_http_set_headers custom function

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7590061eb728f437a968989edf69fb7bf3fa67c3
---

 libavformat/http.c |    8 --------
 libavformat/http.h |   18 ------------------
 2 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 71ada6c..326ed0f 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -67,14 +67,6 @@ static const AVClass httpcontext_class = {
 static int http_connect(URLContext *h, const char *path, const char *hoststr,
                         const char *auth, int *new_location);
 
-void ff_http_set_headers(URLContext *h, const char *headers)
-{
-    HTTPContext *s = h->priv_data;
-
-    av_freep(&s->headers);
-    s->headers = av_strdup(headers);
-}
-
 void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
 {
     memcpy(&((HTTPContext*)dest->priv_data)->auth_state,
diff --git a/libavformat/http.h b/libavformat/http.h
index bd63a19..8dfb192 100644
--- a/libavformat/http.h
+++ b/libavformat/http.h
@@ -25,24 +25,6 @@
 #include "url.h"
 
 /**
- * Set custom HTTP headers.
- * A trailing CRLF ("\r\n") is required for custom headers.
- * Passing in an empty header string ("\0") will reset to defaults.
- *
- * The following headers can be overriden by custom values,
- * otherwise they will be set to their defaults.
- *  -User-Agent
- *  -Accept
- *  -Range
- *  -Host
- *  -Connection
- *
- * @param h URL context for this HTTP connection
- * @param headers the custom headers to set
- */
-void ff_http_set_headers(URLContext *h, const char *headers);
-
-/**
  * Initialize the authentication state based on another HTTP URLContext.
  * This can be used to pre-initialize the authentication parameters if
  * they are known beforehand, to avoid having to do an initial failing



More information about the ffmpeg-cvslog mailing list