MediaPlayerPrivateMediaFoundation::~MediaPlayerPrivateMediaFoundation()
{
    notifyDeleted();
    destroyVideoWindow();
    endSession();
    cancelCallOnMainThread(onTopologySetCallback, this);
    cancelCallOnMainThread(onCreatedMediaSourceCallback, this);
}
Ejemplo n.º 2
0
void
WeakHandleable::removeHandle()
{
	bool bDeleteSelf = false;
	{
		SyncHandle;

		m_iNumHandles--;

		if (m_iNumHandles == 0)
		{
			notifyDeleted();
			if (m_iNumHandles == 0)
				bDeleteSelf = true;
		}
	}

	if (bDeleteSelf)
		DelObject(this);
}
MediaPlayerPrivateMediaFoundation::~MediaPlayerPrivateMediaFoundation()
{
    notifyDeleted();
    destroyVideoWindow();
    endSession();
}