From f1bf28db2ffae195769b4238bf45f5596e3b6ca8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 9 Sep 2022 23:05:39 +0200 Subject: [PATCH] streamts: avoid compiler warnings Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/02ac2e2a85913fb8a35864ca6ad1181e6da920f5 Author: vanhofen Date: 2022-09-09 (Fri, 09 Sep 2022) Origin message was: ------------------ - streamts: avoid compiler warnings --- src/driver/streamts.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/driver/streamts.cpp b/src/driver/streamts.cpp index 0e65e5192..d1ef886bf 100644 --- a/src/driver/streamts.cpp +++ b/src/driver/streamts.cpp @@ -474,7 +474,7 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid, CFro if (tmp_channel) { - printf("e2 -> n chid:%"SCNx64"\n", channel->getChannelID()); + printf("e2 -> n chid:%" SCNx64 "\n", channel->getChannelID()); channel = tmp_channel; chid = tmp_channel->getChannelID(); send_raw = true; @@ -502,6 +502,9 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid, CFro void CStreamManager::AddPids(int fd, CZapitChannel *channel, stream_pids_t &pids, bool send_raw) { + // avoid compiler warning + (void) fd; + if (pids.empty()) { printf("CStreamManager::AddPids: searching channel %" PRIx64 " pids\n", channel->getChannelID()); if (channel->getVideoPid())