Commit 0b4e9f1b authored by François Cartegnie's avatar François Cartegnie 🤞

demux: smooth: fix tfhd track id patch for non live streams

parent 69afe969
......@@ -42,6 +42,9 @@ bool IndexReader::parseIndex(block_t *p_block, BaseRepresentation *rep)
if ( tfhd_box )
SetDWBE( &p_block->p_buffer[tfhd_box->i_pos + 8 + 4], 0x01 );
if(!rep->getPlaylist()->isLive())
return true;
const MP4_Box_t *uuid_box = MP4_BoxGet( rootbox, "moof/traf/uuid" );
while( uuid_box && uuid_box->i_type == ATOM_uuid )
{
......
......@@ -35,8 +35,7 @@ SmoothSegment::SmoothSegment(SegmentInformation *parent) :
void SmoothSegment::onChunkDownload(block_t **pp_block, SegmentChunk *, BaseRepresentation *rep)
{
if(!rep || ((*pp_block)->i_flags & BLOCK_FLAG_HEADER) == 0 ||
!rep->getPlaylist()->isLive())
if(!rep || ((*pp_block)->i_flags & BLOCK_FLAG_HEADER) == 0)
return;
IndexReader br(rep->getPlaylist()->getVLCObject());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment