recording: remove unused duration member variable

This commit is contained in:
Megamouse 2023-11-14 19:36:27 +01:00
parent dbbf318e1c
commit 5fa77b04ea
2 changed files with 0 additions and 4 deletions

View File

@ -357,7 +357,6 @@ namespace utils
track_fully_consumed = 0;
has_error = false;
m_size = 0;
duration_ms = 0;
timestamps_ms.clear();
data.clear();
}
@ -491,8 +490,6 @@ namespace utils
return;
}
duration_ms = stream->duration / 1000;
AVPacket* packet = av_packet_alloc();
std::unique_ptr<AVPacket, decltype([](AVPacket* p){av_packet_unref(p);})> packet_(packet);

View File

@ -76,7 +76,6 @@ namespace utils
const s32 sample_rate = 48000;
std::vector<u8> data;
atomic_t<u64> m_size = 0;
atomic_t<u64> duration_ms = 0;
atomic_t<u32> track_fully_decoded{0};
atomic_t<u32> track_fully_consumed{0};
atomic_t<bool> has_error{false};