[vlc-commits] livehttp: don' t remove segment-count to be less than number of segments requested
Ilkka Ollakka
git at videolan.org
Thu May 2 20:36:40 CEST 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu May 2 20:58:02 2013 +0300| [a799659d60ca3c17cafc4b7e2bd9203ab7d5e0e0] | committer: Ilkka Ollakka
livehttp: don't remove segment-count to be less than number of segments requested
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a799659d60ca3c17cafc4b7e2bd9203ab7d5e0e0
---
modules/access_output/livehttp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access_output/livehttp.c b/modules/access_output/livehttp.c
index 4a45cfd..2300a74 100644
--- a/modules/access_output/livehttp.c
+++ b/modules/access_output/livehttp.c
@@ -603,7 +603,7 @@ static int updateIndexAndDel( sout_access_out_t *p_access, sout_access_out_sys_t
}
// Then take care of deletion
- while( p_sys->b_delsegs && p_sys->i_numsegs && ( (vlc_array_count( p_sys->segments_t ) ) >= p_sys->i_numsegs ) )
+ while( p_sys->b_delsegs && p_sys->i_numsegs && ( (vlc_array_count( p_sys->segments_t ) ) > p_sys->i_numsegs ) )
{
output_segment_t *segment = vlc_array_item_at_index( p_sys->segments_t, 0 );
vlc_array_remove( p_sys->segments_t, 0 );
More information about the vlc-commits
mailing list