npapi-vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Mon Mar 
14 08:59:56 2022 +0100| [390dcb0f14c9715c02f5763a316415c8dc887475] | committer: 
Hugo Beauzée-Luyssen

Use onStopping instead of onEndReached

> https://code.videolan.org/videolan/npapi-vlc/commit/390dcb0f14c9715c02f5763a316415c8dc887475
---

 activex/plugin.cpp          | 2 +-
 common/win32_fullscreen.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/activex/plugin.cpp b/activex/plugin.cpp
index 80cca1a..4a70dae 100644
--- a/activex/plugin.cpp
+++ b/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] {
diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index d94d552..79851f3 100644
--- a/common/win32_fullscreen.cpp
+++ b/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);
     });

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to