Commit 2dd41e39 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCSource: Wait on the proper event to know length

parent 66d7ee7e
......@@ -64,7 +64,7 @@ VLCSource::preparse()
LibVLCpp::MediaPlayer* mediaPlayer = renderer->mediaPlayer();
{
EventWaiter ew( mediaPlayer );
ew.add( libvlc_MediaPlayerTimeChanged );
ew.add( libvlc_MediaPlayerLengthChanged );
renderer->start();
if ( ew.wait( 3000 ) != EventWaiter::Success )
{
......
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