[vlmc-devel] VLCSource: Wait on the proper event to know length

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 24 01:59:13 CET 2014


vlmc | branch: ibackend | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 02:46:59 2014 +0200| [2dd41e3974554747753793d2ce472b318e30205a] | committer: Hugo Beauzée-Luyssen

VLCSource: Wait on the proper event to know length

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2dd41e3974554747753793d2ce472b318e30205a
---

 src/Backend/VLC/VLCSource.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Backend/VLC/VLCSource.cpp b/src/Backend/VLC/VLCSource.cpp
index 3bd377f..f3d9a48 100644
--- a/src/Backend/VLC/VLCSource.cpp
+++ b/src/Backend/VLC/VLCSource.cpp
@@ -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 )
         {



More information about the Vlmc-devel mailing list