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@videolan.org>
Also use a static boolean if the condition has been signaled
before we start waiting on it: libvlc_MediaPlayerSnapshotTaken event
is serialized with libvlc_video_take_snapshot() so when the function
returns the event already happened.