]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxMMedia2/lib/vidbase.cpp
added support for several new events in wxCalendarCtrl: clicking on week
[wxWidgets.git] / utils / wxMMedia2 / lib / vidbase.cpp
index 629389b52c74c81ea985be126cd0224f2e0fb0da..955687ea93a7e19992373a532e2c6a6ed7d73262 100644 (file)
 #pragma hdrstop
 #endif
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_ABSTRACT_CLASS(wxVideoBaseDriver, wxObject)
 IMPLEMENT_DYNAMIC_CLASS(wxVideoOutput, wxWindow)
-#endif
 
 wxVideoOutput::wxVideoOutput()
   : wxWindow()
@@ -83,9 +81,9 @@ wxFrame *wxVideoCreateFrame(wxVideoBaseDriver *vid_drv)
   vid_out->DynamicSize(TRUE);
   frame->Layout();
   frame->Show(TRUE);
-  wxYield();
 
   vid_drv->AttachOutput(*vid_out);
+  vid_drv->Play();
 
   return frame;
 }