X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc036010973de6b66905a58bfa79b21f3b98cfa2..520a495c5972c9e966ba91cb7923bbd5b20f7197:/samples/mediaplayer/mediaplayer.cpp diff --git a/samples/mediaplayer/mediaplayer.cpp b/samples/mediaplayer/mediaplayer.cpp index ee3ab3cbdc..c7128dcdf0 100644 --- a/samples/mediaplayer/mediaplayer.cpp +++ b/samples/mediaplayer/mediaplayer.cpp @@ -415,7 +415,7 @@ MyFrame::MyFrame(const wxString& title) // // The fourth is an optional userdata param - // this is of historical relevance only and is - // there only for backwards compatability. + // there only for backwards compatibility. // // The fifth is the context in which to call the // handler - by default (this param is optional) @@ -870,7 +870,12 @@ MyNotebookPage::MyNotebookPage(wxNotebook* theBook) : // // Create our media control // - m_mediactrl = new wxMediaCtrl(this, wxID_MEDIACTRL); + m_mediactrl = new wxMediaCtrl(); + + // Make sure creation was successful + bool bOK = m_mediactrl->Create(this, wxID_MEDIACTRL); + wxASSERT_MSG(bOK, wxT("Could not create media control!")); + vertsizer->Add(m_mediactrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); //