Commit 0f762cdd authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: make SeekPoints handle jump to chapter requests

parent 7def61c8
......@@ -71,3 +71,13 @@ QList<SeekPoint> const SeekPoints::getPoints()
return copy;
}
bool SeekPoints::jumpTo( int i_chapterindex )
{
vlc_value_t val;
val.i_int = i_chapterindex;
input_thread_t *p_input_thread = playlist_CurrentInput( THEPL );
if( !p_input_thread ) return false;
bool b_succ = var_Set( p_input_thread, "chapter", val );
vlc_object_release( p_input_thread );
return ( b_succ == VLC_SUCCESS );
}
......@@ -50,6 +50,7 @@ public:
QList<SeekPoint> const getPoints();
bool access() { return listMutex.tryLock( 100 ); }
void release() { listMutex.unlock(); }
bool jumpTo( int );
public slots:
void update();
......
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