// public VideoDriver() { theoraInfo = new theora.Info(); theoraComment = new theora.Comment(); theoraState = new theora.State(); yuvBuffer = new theora.YUVBuffer(); oggPacket = new ogg.Packet(); }
public virtual void Dispose() { if (oggPacket != null) { oggPacket.Dispose(); oggPacket = null; } if (yuvBuffer != null) { yuvBuffer.Dispose(); yuvBuffer = null; } if (theoraState != null) { theoraState.Dispose(); theoraState = null; } if (theoraInfo != null) { theoraInfo.Dispose(); theoraInfo = null; } if (theoraComment != null) { theoraComment.Dispose(); theoraComment = null; } if (theoraStreamState != null) { theoraStreamState.Dispose(); theoraStreamState = null; } GC.SuppressFinalize(this); }