Opened 3 years ago

Closed 2 years ago

#13381 closed Bug Report - General (fixed)

"Setting NIT-ID" message shows unsigned int

Reported by: Klaas de Waal Owned by: Klaas de Waal
Priority: trivial Milestone: 30.1
Component: MythTV - Channel Scanner Version: Master Head
Severity: low Keywords: NIT-ID DVB-T channelscan
Cc: Stuart Auchterlonie Ticket locked: no


My mythtv-setup gives the following message on a DVB-T scan:

I  ChannelScanSM(/dev/dvb/adapter1/frontend0): Setting NIT-ID to 4294967295

This is obviously not correct and it happens when the "Network ID" of a video source is left at its default value of -1.
The value is printed as an unsigned int in channelscan_sm.cpp in lines 193-198:

            uint nitid = query.value(0).toInt();
                QString("Setting NIT-ID to %1").arg(nitid));

The value should be printed as an integer as it is really an integer where it is used, as shown in dvbstreamdata.h:

   // Real network ID for broken providers
    int                       _dvb_real_network_id;
inline void DVBStreamData::SetRealNetworkID(int real_network_id)
    QMutexLocker locker(&_listener_lock);
    _dvb_real_network_id = real_network_id;

The (trivial) patch to change "uint nitid" to "int nitid" is attached.

Attachments (1)

20190119-nitid-int.patch (657 bytes) - added by Klaas de Waal 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by Klaas de Waal

Attachment: 20190119-nitid-int.patch added

comment:1 Changed 3 years ago by Stuart Auchterlonie

Milestone: needs_triage30.1
Owner: set to Stuart Auchterlonie
Status: newaccepted

comment:2 Changed 2 years ago by Stuart Auchterlonie

Owner: changed from Stuart Auchterlonie to Klaas de Waal
Status: acceptedassigned

comment:3 Changed 2 years ago by Klaas de Waal <kdewaal@…>

Resolution: fixed
Status: assignedclosed

In 24650f405/mythtv:

Fixes #13381 - "Setting NIT-ID" message shows unsigned int

Signed-off-by: Klaas de Waal <kdewaal@…>

Note: See TracTickets for help on using tickets.