[vlc-devel] commit: Make icecast server detection more robust. (Laurent Aimar )

git version control git at videolan.org
Wed Nov 26 20:05:42 CET 2008


vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed Nov 19 20:22:01 2008 +0100| [2ebf6498354e66e15e7bda49b66d9303c0bd12e9] | committer: Laurent Aimar 

Make icecast server detection more robust.
(cherry picked from commit b35ccb11b7fc6301e1622f9c1621fdc396ddaf95)

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

 modules/access/http.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index eaa7035..66e32ff 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1408,6 +1408,8 @@ static int Request( access_t *p_access, int64_t i_tell )
             p_sys->i_icy_meta = atoi( p );
             if( p_sys->i_icy_meta < 0 )
                 p_sys->i_icy_meta = 0;
+            if( p_sys->i_icy_meta > 0 )
+                p_sys->b_icecast = true;
 
             msg_Warn( p_access, "ICY metaint=%d", p_sys->i_icy_meta );
         }




More information about the vlc-devel mailing list