mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-24 01:42:22 +08:00
适配ZLToolKit
This commit is contained in:
@@ -92,7 +92,7 @@ void HlsMakerImp::onWriteHls(const char *data, int len) {
|
||||
|
||||
std::shared_ptr<FILE> HlsMakerImp::makeFile(const string &file,bool setbuf) {
|
||||
auto file_buf = _file_buf;
|
||||
auto ret= shared_ptr<FILE>(File::createfile_file(file.data(), "wb"), [file_buf](FILE *fp) {
|
||||
auto ret= shared_ptr<FILE>(File::create_file(file.data(), "wb"), [file_buf](FILE *fp) {
|
||||
if (fp) {
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ MP4File::Reader MP4File::createReader(){
|
||||
|
||||
void MP4File::openFile(const char *file,const char *mode) {
|
||||
//创建文件
|
||||
auto fp = File::createfile_file(file,mode);
|
||||
auto fp = File::create_file(file, mode);
|
||||
if(!fp){
|
||||
throw std::runtime_error(string("打开文件失败:") + file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user