From 252ea006a900be0caf094e72a7459c48dfb17fd0 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 8 May 2018 15:28:56 +0200 Subject: [PATCH] TS lib verbosity tweaks --- lib/ts_packet.cpp | 4 +++- lib/ts_stream.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ts_packet.cpp b/lib/ts_packet.cpp index e3a650e7..4b442489 100644 --- a/lib/ts_packet.cpp +++ b/lib/ts_packet.cpp @@ -72,7 +72,9 @@ namespace TS { long long int bPos = data.tellg(); if(!data.read (strBuf,188)) { - HIGH_MSG("failed to read 188 bytes"); + if (!data.eof()){ + HIGH_MSG("failed to read 188 bytes: %s", strerror(errno)); + } return false; } diff --git a/lib/ts_stream.cpp b/lib/ts_stream.cpp index 6e7fcfdb..a278dd4d 100644 --- a/lib/ts_stream.cpp +++ b/lib/ts_stream.cpp @@ -514,7 +514,7 @@ namespace TS{ aac::adts adtsPack(pesPayload + offsetInPes, realPayloadSize - offsetInPes); if (adtsPack && adtsPack.getCompleteSize() + offsetInPes <= realPayloadSize){ if (!adtsInfo.count(tid) || !adtsInfo[tid].sameHeader(adtsPack)){ - MEDIUM_MSG("Setting new ADTS header: %s", adtsPack.toPrettyString().c_str()); + DONTEVEN_MSG("Setting new ADTS header: %s", adtsPack.toPrettyString().c_str()); adtsInfo[tid] = adtsPack; } out.push_back(DTSC::Packet());