Possible crash fix from Ryan (patch #1194315).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
878094ac7c
commit
38647faa5a
@ -60,6 +60,16 @@ DEFINE_EVENT_TYPE(wxEVT_MEDIA_STOP);
|
||||
//
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// wxMediaBackend Destructor
|
||||
//
|
||||
// This is here because the DARWIN gcc compiler badly screwed up and
|
||||
// needs the destructor implementation in the source
|
||||
//---------------------------------------------------------------------------
|
||||
wxMediaBackend::~wxMediaBackend()
|
||||
{
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// wxMediaCtrl::Create (file version)
|
||||
// wxMediaCtrl::Create (URL version)
|
||||
@ -84,7 +94,9 @@ bool wxMediaCtrl::Create(wxWindow* parent, wxWindowID id,
|
||||
{
|
||||
if(!szBackend.empty())
|
||||
{
|
||||
if(!DoCreate(wxClassInfo::FindClass(szBackend), parent, id,
|
||||
wxClassInfo* pClassInfo = wxClassInfo::FindClass(szBackend);
|
||||
|
||||
if(!pClassInfo || !DoCreate(pClassInfo, parent, id,
|
||||
pos, size, style, validator, name))
|
||||
{
|
||||
m_imp = NULL;
|
||||
@ -149,7 +161,8 @@ bool wxMediaCtrl::Create(wxWindow* parent, wxWindowID id,
|
||||
{
|
||||
if(!szBackend.empty())
|
||||
{
|
||||
if(!DoCreate(wxClassInfo::FindClass(szBackend), parent, id,
|
||||
wxClassInfo* pClassInfo = wxClassInfo::FindClass(szBackend);
|
||||
if(!pClassInfo || !DoCreate(pClassInfo, parent, id,
|
||||
pos, size, style, validator, name))
|
||||
{
|
||||
m_imp = NULL;
|
||||
@ -363,7 +376,6 @@ wxFileOffset wxMediaCtrl::Seek(wxFileOffset where, wxSeekMode mode)
|
||||
|
||||
wxFileOffset wxMediaCtrl::Tell()
|
||||
{
|
||||
//FIXME
|
||||
if(m_imp && m_bLoaded)
|
||||
return (wxFileOffset) m_imp->GetPosition().ToLong();
|
||||
return wxInvalidOffset;
|
||||
@ -371,7 +383,6 @@ wxFileOffset wxMediaCtrl::Tell()
|
||||
|
||||
wxFileOffset wxMediaCtrl::Length()
|
||||
{
|
||||
//FIXME
|
||||
if(m_imp && m_bLoaded)
|
||||
return (wxFileOffset) m_imp->GetDuration().ToLong();
|
||||
return wxInvalidOffset;
|
||||
@ -407,9 +418,6 @@ void wxMediaCtrl::DoMoveWindow(int x, int y, int w, int h)
|
||||
m_imp->Move(x, y, w, h);
|
||||
}
|
||||
|
||||
//DARWIN gcc compiler badly screwed up - needs destructor impl in source
|
||||
wxMediaBackend::~wxMediaBackend()
|
||||
{ }
|
||||
#include "wx/html/forcelnk.h"
|
||||
FORCE_LINK(basewxmediabackends);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user