[vlc-commits] [Git][videolan/npapi-vlc][master] Use onStopping instead of onEndReached

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Mon Mar 14 08:00:18 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC Browser Plugins


Commits:
390dcb0f by Hugo Beauzée-Luyssen at 2022-03-14T08:59:56+01:00
Use onStopping instead of onEndReached

- - - - -


2 changed files:

- activex/plugin.cpp
- common/win32_fullscreen.cpp


Changes:

=====================================
activex/plugin.cpp
=====================================
@@ -1421,7 +1421,7 @@ void VLCPlugin::player_register_events()
     em.onBackward([this] {
         fireOnMediaPlayerBackwardEvent();
     });
-    em.onEndReached([this] {
+    em.onStopping([this] {
         fireOnMediaPlayerEndReachedEvent();
     });
     em.onEncounteredError([this] {


=====================================
common/win32_fullscreen.cpp
=====================================
@@ -421,7 +421,7 @@ void VLCControlsWnd::RegisterToVLCEvents()
         PostMessage(hVideoPosScroll, (UINT) PBM_SETPOS, (WPARAM)0, 0);
     });
 
-    VP()->get_mp().eventManager().onEndReached([this] {
+    VP()->get_mp().eventManager().onStopping([this] {
         PostMessage(hPlayPauseButton, BM_SETIMAGE, (WPARAM) IMAGE_BITMAP, (LPARAM) RC().hPlayBitmap);
         PostMessage(hVideoPosScroll, (UINT) PBM_SETPOS, (WPARAM)0, 0);
     });



View it on GitLab: https://code.videolan.org/videolan/npapi-vlc/-/commit/390dcb0f14c9715c02f5763a316415c8dc887475

-- 
View it on GitLab: https://code.videolan.org/videolan/npapi-vlc/-/commit/390dcb0f14c9715c02f5763a316415c8dc887475
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list