livehttp: split from PAT/PMT that precedes keyframes instead of keyframe
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 22 Jan 2013 16:09:42 +0000 (18:09 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 22 Jan 2013 18:46:23 +0000 (20:46 +0200)
modules/access_output/livehttp.c

index bca522b..8323b52 100644 (file)
@@ -423,7 +423,7 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
 
     while( p_buffer )
     {
-        if ( p_sys->i_handle >= 0 && ( p_sys->b_splitanywhere || ( p_buffer->i_flags & BLOCK_FLAG_TYPE_I ) ) && ( p_buffer->i_dts-p_sys->i_opendts ) > p_sys->i_seglenm )
+        if ( p_sys->i_handle >= 0 && ( p_sys->b_splitanywhere || ( p_buffer->i_flags & BLOCK_FLAG_HEADER ) ) && ( p_buffer->i_dts-p_sys->i_opendts ) > p_sys->i_seglenm )
         {
             closeCurrentSegment( p_access, p_sys, false );
         }