[1/7] applehttpproto: Reorder functions

Message ID 1322734056-84812-1-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö Dec. 1, 2011, 10:07 a.m.
---
 libavformat/applehttpproto.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

Patch

diff --git a/libavformat/applehttpproto.c b/libavformat/applehttpproto.c
index 0e64dad..82b9985 100644
--- a/libavformat/applehttpproto.c
+++ b/libavformat/applehttpproto.c
@@ -174,6 +174,17 @@  fail:
     return ret;
 }
 
+static int applehttp_close(URLContext *h)
+{
+    AppleHTTPContext *s = h->priv_data;
+
+    free_segment_list(s);
+    free_variant_list(s);
+    ffurl_close(s->seg_hd);
+    av_free(s);
+    return 0;
+}
+
 static int applehttp_open(URLContext *h, const char *uri, int flags)
 {
     AppleHTTPContext *s;
@@ -287,17 +298,6 @@  retry:
     goto start;
 }
 
-static int applehttp_close(URLContext *h)
-{
-    AppleHTTPContext *s = h->priv_data;
-
-    free_segment_list(s);
-    free_variant_list(s);
-    ffurl_close(s->seg_hd);
-    av_free(s);
-    return 0;
-}
-
 URLProtocol ff_applehttp_protocol = {
     .name      = "applehttp",
     .url_open  = applehttp_open,