mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-02 00:12:33 +08:00
修复ts文件大于3GB时,获取文件大小异常的问题
This commit is contained in:
parent
147ba6147c
commit
4a7f5796ba
@ -136,9 +136,7 @@ void HlsMakerImp::onFlushLastSegment(uint32_t duration_ms) {
|
|||||||
GET_CONFIG(bool, broadcastRecordTs, Hls::kBroadcastRecordTs);
|
GET_CONFIG(bool, broadcastRecordTs, Hls::kBroadcastRecordTs);
|
||||||
if (broadcastRecordTs) {
|
if (broadcastRecordTs) {
|
||||||
_info.time_len = duration_ms / 1000.0f;
|
_info.time_len = duration_ms / 1000.0f;
|
||||||
struct stat fileData;
|
_info.file_size = File::fileSize(_info.file_path.data());
|
||||||
stat(_info.file_path.data(), &fileData);
|
|
||||||
_info.file_size = fileData.st_size;
|
|
||||||
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastRecordTs, _info);
|
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastRecordTs, _info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user