Don't show invalid initial segment

pull/554/head
Mikael Finstad 6 years ago
parent 589f45de08
commit ca7b3dee6a

@ -227,9 +227,9 @@ const Timeline = memo(({
{commandedTimePercent !== undefined && <div style={{ left: commandedTimePercent, position: 'absolute', bottom: 0, top: 0, zIndex: 4, backgroundColor: 'white', width: currentTimeWidth, pointerEvents: 'none' }} />}
{apparentCutSegments.map((seg, i) => {
const {
segBgColor, segActiveBgColor, segBorderColor,
} = getSegColors(seg);
const { segBgColor, segActiveBgColor, segBorderColor } = getSegColors(seg);
if (seg.start === 0 && seg.end === 0) return null; // No video loaded
return (
<TimelineSeg

Loading…
Cancel
Save