29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
|
diff '--color=auto' --unified --recursive --text vivictpp-0.2.0/src/workers/DecoderWorker.cc vivictpp-0.2.0.new/src/workers/DecoderWorker.cc
|
||
|
--- vivictpp-0.2.0/src/workers/DecoderWorker.cc 2022-08-20 14:09:56.000000000 +0200
|
||
|
+++ vivictpp-0.2.0.new/src/workers/DecoderWorker.cc 2022-09-25 16:10:15.818620765 +0200
|
||
|
@@ -59,6 +59,7 @@
|
||
|
}, "seek"));
|
||
|
}
|
||
|
|
||
|
+/*
|
||
|
void logPacket(vivictpp::libav::Packet pkt, const std::shared_ptr<spdlog::logger> &logger) {
|
||
|
AVPacket *packet = pkt.avPacket();
|
||
|
if (packet) {
|
||
|
@@ -67,6 +68,7 @@
|
||
|
logger->trace("Packet: nullptr");
|
||
|
}
|
||
|
}
|
||
|
+*/
|
||
|
|
||
|
void vivictpp::workers::DecoderWorker::doWork() {
|
||
|
logger->trace("vivictpp::workers::DecoderWorker::doWork");
|
||
|
@@ -88,7 +90,7 @@
|
||
|
// TODO: check filter.eof
|
||
|
|
||
|
vivictpp::libav::Packet packet = *(data.data);
|
||
|
- logPacket(packet, logger);
|
||
|
+ //logPacket(packet, logger);
|
||
|
std::vector<vivictpp::libav::Frame> frames = decoder->handlePacket(packet.avPacket());
|
||
|
for (auto frame : frames) {
|
||
|
dropFrameIfSeekingAndBufferFull();
|