[vlc-commits] Qt: seekpoints: only read chapters with timestamp

Francois Cartegnie git at videolan.org
Wed Jul 20 20:35:05 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 20 20:10:17 2011 +0200| [df146da7ece9bc79b225f0b9037b2dccbc45d63a] | committer: Francois Cartegnie

Qt: seekpoints: only read chapters with timestamp

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df146da7ece9bc79b225f0b9037b2dccbc45d63a
---

 modules/gui/qt4/adapters/seekpoints.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/adapters/seekpoints.cpp b/modules/gui/qt4/adapters/seekpoints.cpp
index 7bf5986..481d89e 100644
--- a/modules/gui/qt4/adapters/seekpoints.cpp
+++ b/modules/gui/qt4/adapters/seekpoints.cpp
@@ -54,7 +54,8 @@ void SeekPoints::update()
     if ( !access() ) return;
     pointsList.clear();
     for ( int i=0; i<p_title->i_seekpoint ; i++ )
-        pointsList << SeekPoint( p_title->seekpoint[i] );
+        if ( p_title->seekpoint[i]->i_time_offset > 0 )
+            pointsList << SeekPoint( p_title->seekpoint[i] );
 
     vlc_input_title_Delete( p_title );
     release();



More information about the vlc-commits mailing list