Cleanup mediaplayer sample a bit - get rid of bad loop/islooped since it has internal state
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,10 +214,6 @@ bool wxMediaCtrl::DoCreate(wxClassInfo* classInfo,
|
||||
if( m_imp->CreateControl(this, parent, id, pos, size,
|
||||
style, validator, name) )
|
||||
{
|
||||
this->Connect(GetId(), wxEVT_MEDIA_FINISHED,
|
||||
(wxObjectEventFunction) (wxEventFunction)
|
||||
(wxMediaEventFunction)
|
||||
&wxMediaCtrl::OnMediaFinished);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -415,28 +411,6 @@ void wxMediaCtrl::DoMoveWindow(int x, int y, int w, int h)
|
||||
m_imp->Move(x, y, w, h);
|
||||
}
|
||||
|
||||
void wxMediaCtrl::Loop(bool bLoop)
|
||||
{
|
||||
m_bLoop = bLoop;
|
||||
}
|
||||
|
||||
bool wxMediaCtrl::IsLooped()
|
||||
{
|
||||
return m_bLoop;
|
||||
}
|
||||
|
||||
void wxMediaCtrl::OnMediaFinished(wxMediaEvent& WXUNUSED(evt))
|
||||
{
|
||||
if(m_bLoop)
|
||||
{
|
||||
#ifdef __WXDEBUG__
|
||||
wxASSERT( Play() );
|
||||
#else
|
||||
Play();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
//DARWIN gcc compiler badly screwed up - needs destructor impl in source
|
||||
wxMediaBackend::~wxMediaBackend()
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user