[vlc-commits] Making access to wxWindow::AddPendingEvent in example.
Mariusz Wasak
git at videolan.org
Fri Jan 8 10:35:32 CET 2016
vlc | branch: master | Mariusz Wasak <mawasak at wp.pl> | Wed Jan 6 17:18:48 2016 +0100| [5b526dae4ce3ea92397d1e159fd2b48181198215] | committer: Jean-Baptiste Kempf
Making access to wxWindow::AddPendingEvent in example.
AddPendingEvent is protected in wxWindow so orignial example code don't compile. Access to this method should be made by using wxWindow::GetEventHandler()
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b526dae4ce3ea92397d1e159fd2b48181198215
---
doc/libvlc/wx_player.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/libvlc/wx_player.cpp b/doc/libvlc/wx_player.cpp
index fbd4a0f..a1690ce 100644
--- a/doc/libvlc/wx_player.cpp
+++ b/doc/libvlc/wx_player.cpp
@@ -247,12 +247,12 @@ class MyApp : public wxApp {
void OnPositionChanged_VLC(const libvlc_event_t *event, void *data) {
wxCommandEvent evt(vlcEVT_POS, wxID_ANY);
- mainWindow->AddPendingEvent(evt);
+ mainWindow->GetEventHandler()->AddPendingEvent(evt);
}
void OnEndReached_VLC(const libvlc_event_t *event, void *data) {
wxCommandEvent evt(vlcEVT_END, wxID_ANY);
- mainWindow->AddPendingEvent(evt);
+ mainWindow->GetEventHandler()->AddPendingEvent(evt);
}
bool MyApp::OnInit() {
More information about the vlc-commits
mailing list