Commit 7a0d2452 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

(cherry picked from commit 491b918f5628a502a6bcf89141e5ecfba3c7757d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f6fb26cf
......@@ -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