Commit 491b918f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: avoid a crash on displaying the chapters for some mp4

parent 9b5d0b4d
......@@ -260,7 +260,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
if ( event->x() >= x )
i_selected = i + ( ( b_startsnonzero )? 1 : 0 );
}
if ( i_selected >= 0 )
if ( i_selected >= 0 && i_selected < points.size() )
chapterLabel = points.at( i_selected ).name;
}
......
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