[vlc-commits] access: http: set min icy meta interval
Francois Cartegnie
git at videolan.org
Sun Dec 10 23:34:05 CET 2017
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Dec 10 12:14:38 2017 +0100| [fcb820b39ace34ac011892d162caa603c94bab02] | committer: Jean-Baptiste Kempf
access: http: set min icy meta interval
worst case is 2, 50% bw waste with 0 bytes of meta and
>99.97% with max metadata.
1 is nonsense and would just mean no data stream.
(cherry picked from commit d88d71098775870d8e90fde05990cb2828584d46)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=fcb820b39ace34ac011892d162caa603c94bab02
---
modules/access/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index e5ce3ecf6b..83a6455d65 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -897,7 +897,7 @@ static int Connect( stream_t *p_access )
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 )
+ if( p_sys->i_icy_meta > 1 )
{
p_sys->i_icy_offset = p_sys->i_icy_meta;
p_sys->b_icecast = true;
More information about the vlc-commits
mailing list