[vlc-commits] hls: Cosmetics.

Hugo Beauzée-Luyssen git at videolan.org
Mon Mar 12 16:28:28 CET 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Mar 12 16:23:23 2012 +0100| [80f1a853a378ab37ba857d8907243f6d88707d58] | committer: Hugo Beauzée-Luyssen

hls: Cosmetics.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80f1a853a378ab37ba857d8907243f6d88707d58
---

 modules/stream_filter/httplive.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 7c72abd..6748ad2 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -577,20 +577,20 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati
     char *endptr;
     if (hls->version < 3)
     {
-       errno = 0;
-       value = strtol(token, &endptr, 10);
-       if (token == endptr || errno == ERANGE )
-       {
-           *duration = -1;
-           return VLC_EGENERIC;
-       }
-       *duration = value;
+        errno = 0;
+        value = strtol(token, &endptr, 10);
+        if (token == endptr || errno == ERANGE)
+        {
+            *duration = -1;
+            return VLC_EGENERIC;
+        }
+        *duration = value;
     }
     else
     {
         errno = 0;
         double d = strtof(token, &endptr);
-        if (token == endptr || errno == ERANGE )
+        if (token == endptr || errno == ERANGE)
         {
             *duration = -1;
             return VLC_EGENERIC;



More information about the vlc-commits mailing list