Commit ab042aa7 authored by Steve Lhomme's avatar Steve Lhomme

demux:mkv: do not read further segments if we can't seek back

parent afdf229f
......@@ -531,7 +531,10 @@ bool demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, matroska_stream_c *
EbmlElement* p_l0_prev = p_l0;
if (p_l0->IsFiniteSize() )
bool b_seekable;
vlc_stream_Control( demuxer.s, STREAM_CAN_SEEK, &b_seekable );
if (p_l0->IsFiniteSize() && b_seekable )
{
p_l0->SkipData(p_stream1->estream, KaxMatroska_Context);
p_l0 = p_stream1->estream.FindNextID(EBML_INFO(KaxSegment), UINT64_MAX);
......
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