remove unused MovieTexture_DShow::Stop
This commit is contained in:
@@ -399,27 +399,13 @@ void MovieTexture_DShow::Pause()
|
||||
m_pGB.QueryInterface(&pMC);
|
||||
|
||||
HRESULT hr;
|
||||
/* Use Pause(), so we'll get a still frame in CTextureRenderer::OnReceiveFirstSample. */
|
||||
if( FAILED( hr = pMC->Pause() ) )
|
||||
RageException::Throw( hr_ssprintf(hr, "Could not pause the DirectShow graph.") );
|
||||
|
||||
StopSkippingUpdates();
|
||||
}
|
||||
|
||||
void MovieTexture_DShow::Stop()
|
||||
{
|
||||
SkipUpdates();
|
||||
|
||||
CComPtr<IMediaControl> pMC;
|
||||
m_pGB.QueryInterface(&pMC);
|
||||
|
||||
HRESULT hr;
|
||||
if( FAILED( hr = pMC->Stop() ) )
|
||||
RageException::Throw( hr_ssprintf(hr, "Could not stop the DirectShow graph.") );
|
||||
|
||||
m_bPlaying = false;
|
||||
|
||||
StopSkippingUpdates();
|
||||
}
|
||||
|
||||
void MovieTexture_DShow::SetPosition( float fSeconds )
|
||||
{
|
||||
|
||||
@@ -55,7 +55,6 @@ public:
|
||||
|
||||
virtual void Play();
|
||||
virtual void Pause();
|
||||
virtual void Stop();
|
||||
virtual void SetPosition( float fSeconds );
|
||||
virtual void SetPlaybackRate( float fRate );
|
||||
virtual bool IsPlaying() const { return m_bPlaying; }
|
||||
|
||||
Reference in New Issue
Block a user