recording: remove unused duration member variable
This commit is contained in:
@@ -357,7 +357,6 @@ namespace utils
|
|||||||
track_fully_consumed = 0;
|
track_fully_consumed = 0;
|
||||||
has_error = false;
|
has_error = false;
|
||||||
m_size = 0;
|
m_size = 0;
|
||||||
duration_ms = 0;
|
|
||||||
timestamps_ms.clear();
|
timestamps_ms.clear();
|
||||||
data.clear();
|
data.clear();
|
||||||
}
|
}
|
||||||
@@ -491,8 +490,6 @@ namespace utils
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
duration_ms = stream->duration / 1000;
|
|
||||||
|
|
||||||
AVPacket* packet = av_packet_alloc();
|
AVPacket* packet = av_packet_alloc();
|
||||||
std::unique_ptr<AVPacket, decltype([](AVPacket* p){av_packet_unref(p);})> packet_(packet);
|
std::unique_ptr<AVPacket, decltype([](AVPacket* p){av_packet_unref(p);})> packet_(packet);
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ namespace utils
|
|||||||
const s32 sample_rate = 48000;
|
const s32 sample_rate = 48000;
|
||||||
std::vector<u8> data;
|
std::vector<u8> data;
|
||||||
atomic_t<u64> m_size = 0;
|
atomic_t<u64> m_size = 0;
|
||||||
atomic_t<u64> duration_ms = 0;
|
|
||||||
atomic_t<u32> track_fully_decoded{0};
|
atomic_t<u32> track_fully_decoded{0};
|
||||||
atomic_t<u32> track_fully_consumed{0};
|
atomic_t<u32> track_fully_consumed{0};
|
||||||
atomic_t<bool> has_error{false};
|
atomic_t<bool> has_error{false};
|
||||||
|
|||||||
Reference in New Issue
Block a user