[vlc-devel] [PATCH] Making access to wxWindow::AddPendingEvent in example.
Mariusz Wasak
mawasak at wp.pl
Wed Jan 6 17:18:48 CET 2016
AddPendingEvent is protected in wxWindow so orignial example code don't compile. Access to this method should be made by using wxWindow::GetEventHandler()
---
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() {
--
2.6.3
More information about the vlc-devel
mailing list