public void Stop() { StopThread(); if (m_pDecoder == 0) { return; } MyDecoder.DCD_Close(m_pDecoder); //TODO:stop drawer }
public bool SetDecoder(string name) { if (m_pDecoder != 0) { MyDecoder.DCD_Close(m_pDecoder); } m_pDecoder = MyDecoder.DCD_Create(name); int clock = 90000; clock_ms = (uint)clock / 1000; if (clock_ms == 0) clock_ms = 90; }
public void Stop() { if (this.Running) { SignalToStop(); WaitForStop(); if (m_pDecoder == 0) { return; } MyDecoder.DCD_Close(m_pDecoder); if (m_pRender != null) { m_pRender.Stop(); } } }