341 changes: 0 additions & 341 deletions mythplugins/COPYING

This file was deleted.

1 change: 0 additions & 1 deletion mythplugins/mytharchive/mytharchive/mytharchive.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ LIBS += -lmythavutil
LIBS += -lmythmetadata-$$LIBVERSION
LIBS += -lmythtv-$$LIBVERSION
# libmythtv dependencies
using_live: LIBS += -lmythlivemedia-$$LIBVERSION
using_mheg: LIBS += -lmythfreemheg-$$LIBVERSION
using_hdhomerun: LIBS += -lhdhomerun

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ LIBS += -lmythavfilter
LIBS += -lz
LIBS += -lmythtv-$$LIBVERSION
# libmythtv dependencies
using_live: LIBS += -lmythlivemedia-$$LIBVERSION
using_mheg: LIBS += -lmythfreemheg-$$LIBVERSION
using_hdhomerun: LIBS += -lhdhomerun

Expand Down
340 changes: 0 additions & 340 deletions mythplugins/mythbrowser/COPYING

This file was deleted.

3 changes: 1 addition & 2 deletions mythplugins/mythgame/mythgame/gamehandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ static void UpdateGameCounts(const QStringList& updatelist)
MSqlQuery query(MSqlQuery::InitCon());

static const QRegularExpression multiDiskRGXP { "[0-4]$" };
int pos = 0;

QString lastrom;
QString firstname;
Expand Down Expand Up @@ -331,7 +330,7 @@ static void UpdateGameCounts(const QStringList& updatelist)
{
int diskcount = 0;
int extlength = 0;
pos = RomName.lastIndexOf(".");
int pos = RomName.lastIndexOf(".");
if (pos > 1)
{
extlength = RomName.length() - pos;
Expand Down
340 changes: 0 additions & 340 deletions mythplugins/mythnews/COPYING

This file was deleted.

340 changes: 0 additions & 340 deletions mythplugins/mythzoneminder/COPYING

This file was deleted.

2 changes: 1 addition & 1 deletion mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ Player::~Player()
free(m_rgba);
}

void Player::setMonitor(Monitor *mon)
void Player::setMonitor(const Monitor *mon)
{
m_monitor = *mon;

Expand Down
2 changes: 1 addition & 1 deletion mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Player
void updateStatus(void);
void updateCamera();

void setMonitor(Monitor *mon);
void setMonitor(const Monitor *mon);
void setWidgets(MythUIImage *image, MythUIText *status,
MythUIText *camera);

Expand Down
5 changes: 0 additions & 5 deletions mythtv/FAQ

This file was deleted.

7 changes: 5 additions & 2 deletions mythtv/README
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ http://lists.mythtv.org/mailman/listinfo/mythtv-dev
A users list exists as well, subscribe at:
http://lists.mythtv.org/mailman/listinfo/mythtv-users

A list that's restricted to the Git commit and Trac (bug tracking) messages is
available at:
A list that's restricted to the Git commit and Trac (bug tracking - no longer used)
messages is available at:
http://lists.mythtv.org/mailman/listinfo/mythtv-commits

NOTE: We now use GitHub Issues to track bugs, tasks, pull requests etc at:
https://github.com/MythTV/mythtv/issues

To contact the developer's for corporate sponsorship, contract work or similarly
formal and private matters please use the form at https://www.mythtv.org/contact/
61 changes: 0 additions & 61 deletions mythtv/UPGRADING

This file was deleted.

2 changes: 1 addition & 1 deletion mythtv/bindings/python/ttvdbv4/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ----------------------------------------------------
# Purpose: MythTV Python Bindings for TheTVDB v4 API
# Copyright: (c) 2021 Roland Ernst
# License: GPL v2 or later, see COPYING for details
# License: GPL v2 or later, see LICENSE for details
# ----------------------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion mythtv/bindings/python/ttvdbv4/get_api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ----------------------------------------------------
# Purpose: MythTV Python Bindings for TheTVDB v4 API
# Copyright: (c) 2021 Roland Ernst
# License: GPL v2 or later, see COPYING for details
# License: GPL v2 or later, see LICENSE for details
# ----------------------------------------------------

"""
Expand Down
2 changes: 1 addition & 1 deletion mythtv/bindings/python/ttvdbv4/myth4ttvdbv4.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ----------------------------------------------------
# Purpose: MythTV Python Bindings for TheTVDB v4 API
# Copyright: (c) 2021 Roland Ernst
# License: GPL v2 or later, see COPYING for details
# License: GPL v2 or later, see LICENSE for details
# ----------------------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion mythtv/bindings/python/ttvdbv4/ttvdbv4_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ----------------------------------------------------
# Purpose: MythTV Python Bindings for TheTVDB v4 API
# Copyright: (c) 2021 Roland Ernst
# License: GPL v2 or later, see COPYING for details
# License: GPL v2 or later, see LICENSE for details
# ----------------------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion mythtv/bindings/python/ttvdbv4/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ----------------------------------------------------
# Purpose: MythTV Python Bindings for TheTVDB v4 API
# Copyright: (c) 2021 Roland Ernst
# License: GPL v2 or later, see COPYING for details
# License: GPL v2 or later, see LICENSE for details
# ----------------------------------------------------


Expand Down
20 changes: 0 additions & 20 deletions mythtv/data/scanConfigs/dvb-s/Freesat.xml

This file was deleted.

5 changes: 0 additions & 5 deletions mythtv/docs/README.HOWTO

This file was deleted.

8 changes: 8 additions & 0 deletions mythtv/docs/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This is for generating the source code documentation with doxygen, available at
https://code.mythtv.org/doxygen/

The MythTV User Manual is available on the MythTV Official Wiki at
https://www.mythtv.org/wiki/User_Manual:Index

and additional information is available in the Wiki at:
http://www.mythtv.org/wiki/
File renamed without changes.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audio/audiosettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ AudioSettings::AudioSettings(
bool set_initial_vol,
bool use_passthru,
int upmixer_startup,
AudioOutputSettings *custom) :
const AudioOutputSettings *custom) :
m_mainDevice(std::move(main_device)),
m_passthruDevice(std::move(passthru_device)),
m_format(format),
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audio/audiosettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MPUBLIC AudioSettings
bool set_initial_vol,
bool use_passthru,
int upmixer_startup = 0,
AudioOutputSettings *custom = nullptr);
const AudioOutputSettings *custom = nullptr);

AudioSettings(AudioFormat format,
int channels,
Expand Down
68 changes: 34 additions & 34 deletions mythtv/libs/libmythbase/mythchrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ using SystemTime = std::chrono::time_point<SystemClock>;
//

/// @brief Helper function for convert a floating point number to a duration.
//
// \param value A floating point number that represents a time in seconds.
// \returns The same number of seconds as a std::chrono::seconds.
///
/// \param value A floating point number that represents a time in seconds.
/// \returns The same number of seconds as a std::chrono::seconds.
template <typename T>
typename std::enable_if_t<std::is_floating_point_v<T>, std::chrono::seconds>
secondsFromFloat (T value)
Expand All @@ -83,9 +83,9 @@ secondsFromFloat (T value)
}

/// @brief Helper function for convert a floating point number to a duration.
//
// \param value A floating point number that represents a time in milliseconds.
// \returns The same number of seconds as a std::chrono::milliseconds.
///
/// \param value A floating point number that represents a time in milliseconds.
/// \returns The same number of seconds as a std::chrono::milliseconds.
template <typename T>
typename std::enable_if_t<std::is_floating_point_v<T>, std::chrono::milliseconds>
millisecondsFromFloat (T value)
Expand All @@ -94,9 +94,9 @@ millisecondsFromFloat (T value)
}

/// @brief Helper function for convert a floating point number to a duration.
//
// \param value A floating point number that represents a time in microseconds.
// \returns The same number of seconds as a std::chrono::microseconds.
///
/// \param value A floating point number that represents a time in microseconds.
/// \returns The same number of seconds as a std::chrono::microseconds.
template <typename T>
typename std::enable_if_t<std::is_floating_point_v<T>, std::chrono::microseconds>
microsecondsFromFloat (T value)
Expand All @@ -116,12 +116,12 @@ std::chrono::milliseconds millisecondsFromParts (int hours, int minutes = 0,
}

/// @brief Convert a timeval to a duration.
//
// Always specify the desired precision when calling this function.
// I.E. Always call in the form:
// durationFromTimeval<std::chrono::milliseconds>(t);
//
// Timevals can support a precision as small as microseconds.
///
/// Always specify the desired precision when calling this function.
/// I.E. Always call in the form:
/// durationFromTimeval<std::chrono::milliseconds>(t);
///
/// Timevals can support a precision as small as microseconds.
template <typename T>
constexpr T durationFromTimeval (timeval t)
{
Expand All @@ -133,12 +133,12 @@ constexpr T durationFromTimeval (timeval t)
}

/// @brief Compute delta between timevals and convert to a duration.
//
// Always specify the desired precision when calling this function.
// I.E. Always call in the form:
// durationFromTimevalDelta<std::chrono::milliseconds>(t);
//
// Timevals can support a precision as small as microseconds.
///
/// Always specify the desired precision when calling this function.
/// I.E. Always call in the form:
/// durationFromTimevalDelta<std::chrono::milliseconds>(t);
///
/// Timevals can support a precision as small as microseconds.
template <typename T>
constexpr T durationFromTimevalDelta (timeval a, timeval b)
{
Expand All @@ -150,12 +150,12 @@ constexpr T durationFromTimevalDelta (timeval a, timeval b)
}

/// @brief Convert a timespec to a duration.
//
// Always specify the desired precision when calling this function.
// I.E. Always call in the form:
// durationFromTimespec<std::chrono::milliseconds>(t);
//
// Timevals can support a precision as small as nanoseconds.
///
/// Always specify the desired precision when calling this function.
/// I.E. Always call in the form:
/// durationFromTimespec<std::chrono::milliseconds>(t);
///
/// Timevals can support a precision as small as nanoseconds.
template <typename T>
constexpr T durationFromTimespec (struct timespec time)
{
Expand All @@ -172,13 +172,13 @@ constexpr T durationFromTimespec (struct timespec time)
//

/// @brief Get the currenttime as a duration.
//
// Always specify the desired precision when calling this function.
// I.E. Always call in the form:
// nowAsDuration<std::chrono::milliseconds>(t);
//
// This function is based upon the gettimeoday function, so can
// return precisions as small as microseconds.
///
/// Always specify the desired precision when calling this function.
/// I.E. Always call in the form:
/// nowAsDuration<std::chrono::milliseconds>(t);
///
/// This function is based upon the gettimeoday function, so can
/// return precisions as small as microseconds.
template <typename T>
T nowAsDuration (bool adjustForTZ = false)
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythfreemheg/ParseNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class MHPBool: public MHParseNode
class MHPString: public MHParseNode
{
public:
explicit MHPString(MHOctetString &pSrc): MHParseNode(PNString) { m_Value.Copy(pSrc); }
explicit MHPString(const MHOctetString &pSrc): MHParseNode(PNString) { m_Value.Copy(pSrc); }

public:
MHOctetString m_Value;
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythmetadata/libmythmetadata.pro
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ LIBS += $${CONFIG_TAGLIB_LIBS}
win32-msvc*:LIBS += -ltag

using_mheg:LIBS += -L../libmythfreemheg -lmythfreemheg-$${LIBVERSION}
using_live:LIBS += -L../libmythlivemedia -lmythlivemedia-$${LIBVERSION}

mingw:LIBS += -lws2_32
mingw:LIBS += libbluray
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythprotoserver/libmythprotoserver.pro
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ LIBS += -lmythservicecontracts-$$LIBVERSION
LIBS += -lmythavutil -lmythavcodec -lmythavformat -lmythswscale
LIBS += $$EXTRA_LIBS $$LATE_LIBS $$QMAKE_LIBS_DYNLOAD
using_mheg:LIBS += -L../libmythfreemheg -lmythfreemheg-$$LIBVERSION
using_live:LIBS += -L../libmythlivemedia -lmythlivemedia-$$LIBVERSION

inc.path = $${PREFIX}/include/mythtv/protoserver

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/datacontracthelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2015 Bill Meek, from: 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2015 Bill Meek, from: 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2013 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2013 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2014 team MythTV
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2014 team MythTV
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/datacontracts/enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2014 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2014 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2015 Bill Meek, from: 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2014 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2014 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/datacontracts/genre.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/datacontracts/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2013 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2013 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//////////////////////////////////////////////////////////////////////////////
// Program Name: labelValue.h
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/datacontracts/lineup.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2015 Bill Meek, from: 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//////////////////////////////////////////////////////////////////////////////
// Program Name: logMessage.h
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/datacontracts/markup.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2021 team MythTV
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2021 team MythTV
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//////////////////////////////////////////////////////////////////////////////
// Program Name: timeZoneInfo.h
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2013 Chris Pinkham <cpinkham@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2013 Chris Pinkham <cpinkham@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Raymond Wagner <rwagner@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Copyright (c) 2010 Robert McNamara <rmcnamara@mythtv.org>
// Copyright (c) 2013 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2020 Peter Bennett <pbennett@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2011 Peter Bennett <pbennett@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/service.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythservicecontracts/services/dvrServices.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2014 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2011 Robert McNamara <rmcnamara@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
16 changes: 8 additions & 8 deletions mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,14 +578,14 @@ void MythRAOPConnection::timevalToNTP(timeval t, uint32_t &ntpSec, uint32_t &ntp


///
// \param buf A pointer to the received data.
// \param type The type of this packet.
// \param seq The sequence number of this packet. This value is not
// always set.
// \param timestamp The frame number of the first frame in this
// packet. NOT milliseconds. This value is not
// always set.
// \returns true if the packet header was successfully parsed.
/// \param buf A pointer to the received data.
/// \param type The type of this packet.
/// \param seq The sequence number of this packet. This value is not
/// always set.
/// \param timestamp The frame number of the first frame in this
/// packet. NOT milliseconds. This value is not
/// always set.
/// \returns true if the packet header was successfully parsed.
bool MythRAOPConnection::GetPacketType(const QByteArray &buf, uint8_t &type,
uint16_t &seq, uint64_t &timestamp)
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/DVD/mythdvdbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ bool MythDVDBuffer::GetDVDStateSnapshot(QString& State)

/** \brief Restore a DVD VM from a snapshot
*/
bool MythDVDBuffer::RestoreDVDStateSnapshot(QString& State)
bool MythDVDBuffer::RestoreDVDStateSnapshot(const QString& State)
{
QByteArray state = State.toUtf8();
return (dvdnav_set_state(m_dvdnav, state.constData()) == DVDNAV_STATUS_OK);
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/DVD/mythdvdbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MTV_PUBLIC MythDVDBuffer : public MythOpticalBuffer
int GetAudioTrackNum (uint StreamId);
int GetAudioTrackType (uint Index);
bool GetDVDStateSnapshot (QString& State);
bool RestoreDVDStateSnapshot(QString& State);
bool RestoreDVDStateSnapshot(const QString& State);
double GetFrameRate (void);
bool StartOfTitle (void) const;
bool EndOfTitle (void) const;
Expand Down
12 changes: 6 additions & 6 deletions mythtv/libs/libmythtv/channelscan/channelscanmiscsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ class ScanTransponder: public TransMythUIComboBoxSetting
QMap<QString, struct tuningdata> tdm;

public:
QString getFrequency (QString &satname) {return tdm[satname].frequency; }
QString getPolarity (QString &satname) {return tdm[satname].polarity; }
QString getSymbolrate(QString &satname) {return tdm[satname].symbolrate;}
QString getModulation(QString &satname) {return tdm[satname].modulation;}
QString getModSys (QString &satname) {return tdm[satname].modSys; }
QString getFec (QString &satname) {return tdm[satname].fec; }
QString getFrequency (const QString &satname) {return tdm[satname].frequency; }
QString getPolarity (const QString &satname) {return tdm[satname].polarity; }
QString getSymbolrate(const QString &satname) {return tdm[satname].symbolrate;}
QString getModulation(const QString &satname) {return tdm[satname].modulation;}
QString getModSys (const QString &satname) {return tdm[satname].modSys; }
QString getFec (const QString &satname) {return tdm[satname].fec; }
};

class ScanFrequencykHz: public TransTextEditSetting
Expand Down
10 changes: 0 additions & 10 deletions mythtv/libs/libmythtv/libmythtv.pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ DEPENDPATH += ./recorders/dvbdev
DEPENDPATH += ./recorders/rtp
DEPENDPATH += ./recorders/vbitext
DEPENDPATH += ./recorders/HLS
DEPENDPATH += ../libmythlivemedia/BasicUsageEnvironment/include
DEPENDPATH += ../libmythlivemedia/BasicUsageEnvironment
DEPENDPATH += ../libmythlivemedia/groupsock/include
DEPENDPATH += ../libmythlivemedia/groupsock
DEPENDPATH += ../libmythlivemedia/liveMedia/include
DEPENDPATH += ../libmythlivemedia/liveMedia
DEPENDPATH += ../libmythlivemedia/UsageEnvironment/include
DEPENDPATH += ../libmythlivemedia/UsageEnvironment
DEPENDPATH += ../libmythbase ../libmythui
DEPENDPATH += ../libmythupnp
DEPENDPATH += ../libmythservicecontracts
Expand Down Expand Up @@ -1166,7 +1158,6 @@ LIBS += -lmythui-$$LIBVERSION -lmythupnp-$$LIBVERSION
LIBS += -lmythbase-$$LIBVERSION
LIBS += -lmythservicecontracts-$$LIBVERSION
using_mheg: LIBS += -L../libmythfreemheg -lmythfreemheg-$$LIBVERSION
using_live: LIBS += -L../libmythlivemedia -lmythlivemedia-$$LIBVERSION
using_backend:using_mp3lame: LIBS += -lmp3lame
using_backend: LIBS += -llzo2
LIBS += $$EXTRA_LIBS $$QMAKE_LIBS_DYNLOAD
Expand All @@ -1182,7 +1173,6 @@ LIBS += $$EXTRA_LIBS $$QMAKE_LIBS_DYNLOAD
POST_TARGETDEPS += ../../external/FFmpeg/libavfilter/$$avLibName(avfilter)

using_mheg: POST_TARGETDEPS += ../libmythfreemheg/libmythfreemheg-$${MYTH_SHLIB_EXT}
using_live: POST_TARGETDEPS += ../libmythlivemedia/libmythlivemedia-$${MYTH_SHLIB_EXT}
}

INCLUDEPATH += $$POSTINC
Expand Down
18 changes: 9 additions & 9 deletions mythtv/libs/libmythtv/mpeg/dvbdescriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ class SatelliteDeliverySystemDescriptor : public MPEGDescriptor
uint Polarization(void) const { return (m_data[8]>>5)&0x3; }
QString PolarizationString() const
{
static std::array<QString,4> ps { "h", "v", "l", "r" };
static const std::array<const QString,4> ps { "h", "v", "l", "r" };
return ps[Polarization()];
}
bool IsCircularPolarization(void) const { return ((m_data[8]>>6)&0x1) != 0; }
Expand All @@ -871,7 +871,7 @@ class SatelliteDeliverySystemDescriptor : public MPEGDescriptor
uint RollOff(void) const { return (m_data[8]>>3)&0x3; }
QString RollOffString(void) const
{
static std::array<QString,4> ro { "0.35", "0.20", "0.25", "auto" };
static const std::array<const QString,4> ro { "0.35", "0.20", "0.25", "auto" };
return ro[RollOff()];
}
// modulation system 1 8.5
Expand All @@ -892,7 +892,7 @@ class SatelliteDeliverySystemDescriptor : public MPEGDescriptor
uint Modulation(void) const { return m_data[8]&0x03; }
QString ModulationString(void) const
{
static std::array<QString,4> ms { "qpsk", "qpsk", "8psk", "qam_16" };
static const std::array<const QString,4> ms { "qpsk", "qpsk", "8psk", "qam_16" };
return ms[Modulation()];
}
// symbol_rate 28 9.0
Expand Down Expand Up @@ -996,7 +996,7 @@ class TerrestrialDeliverySystemDescriptor : public MPEGDescriptor
/// \bug returns "a" for values >= 4 for compatibility with siparser.cpp
QString HierarchyString(void) const
{
static std::array<QString,8> hs { "n", "1", "2", "4", "a", "a", "a", "a" };
static const std::array<const QString,8> hs { "n", "1", "2", "4", "a", "a", "a", "a" };
return hs[Hierarchy()];
}
bool NativeInterleaver(void) const { return ( m_data[7] & 0x20 ) != 0; }
Expand All @@ -1017,7 +1017,7 @@ class TerrestrialDeliverySystemDescriptor : public MPEGDescriptor
uint CodeRateHP(void) const { return m_data[7] & 0x7; }
QString CodeRateHPString(void) const
{
static std::array<QString,8> cr {
static const std::array<const QString,8> cr {
"1/2", "2/3", "3/4", "5/6", "7/8", "auto", "auto", "auto"
};
return cr[CodeRateHP()];
Expand All @@ -1026,7 +1026,7 @@ class TerrestrialDeliverySystemDescriptor : public MPEGDescriptor
uint CodeRateLP(void) const { return (m_data[8]>>5) & 0x7; }
QString CodeRateLPString(void) const
{
static std::array<QString,8> cr {
static const std::array<const QString,8> cr {
"1/2", "2/3", "3/4", "5/6", "7/8", "auto", "auto", "auto"
};
return cr[CodeRateLP()];
Expand All @@ -1042,7 +1042,7 @@ class TerrestrialDeliverySystemDescriptor : public MPEGDescriptor
uint GuardInterval(void) const { return (m_data[8]>>3) & 0x3; }
QString GuardIntervalString(void) const
{
static std::array<QString,4> gi { "1/32", "1/16", "1/8", "1/4" };
static const std::array<const QString,4> gi { "1/32", "1/16", "1/8", "1/4" };
return gi[GuardInterval()];
}
// transmission_mode 2 8.5
Expand All @@ -1055,7 +1055,7 @@ class TerrestrialDeliverySystemDescriptor : public MPEGDescriptor
uint TransmissionMode(void) const { return (m_data[8]>>1) & 0x3; }
QString TransmissionModeString(void) const
{
static std::array<QString,4> tm { "2", "8", "4", "auto" };
static const std::array<const QString,4> tm { "2", "8", "4", "auto" };
return tm[TransmissionMode()];
}
// other_frequency_flag 1 8.7
Expand Down Expand Up @@ -1864,7 +1864,7 @@ class ParentalRatingDescriptor : public MPEGDescriptor
// 0x00 - undefined
return -1;
}
if ((rawRating >= 0x01) && (rawRating <= 0x0F))
if (rawRating <= 0x0F)
{
// 0x01 to 0x0F - minumum age = rating + 3 years
return rawRating + 3;
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/mythvideooutgpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ MythVideoOutputGPU *MythVideoOutputGPU::Create(MythMainWindow* MainWindow, MythR
// video = new VideoOutputD3D();
#endif
#ifdef USING_OPENGL
// cppcheck-suppress knownConditionTrueFalse
if (!video && renderer.contains("opengl") && openglrender)
{
video = new MythVideoOutputOpenGL(MainWindow, openglrender,
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ void DTVRecorder::FindPSKeyFrames(const uint8_t *buffer, uint len)
frameRate = frameRateMap[(bufptr[3] & 0x0000000f)];
}
}
else if (!m_videoBytesRemaining && !m_audioBytesRemaining)
else if (!m_audioBytesRemaining)
{
if ((stream_id >= PESStreamID::MPEGVideoStreamBegin) &&
(stream_id <= PESStreamID::MPEGVideoStreamEnd))
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/vboxutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ bool VBox::sendQuery(const QString& query, QDomDocument* xmlDoc)
return true;
}

QString VBox::getStrValue(QDomElement &element, const QString &name, int index)
QString VBox::getStrValue(const QDomElement &element, const QString &name, int index)
{
QDomNodeList nodes = element.elementsByTagName(name);
if (!nodes.isEmpty())
Expand All @@ -414,7 +414,7 @@ QString VBox::getStrValue(QDomElement &element, const QString &name, int index)
return QString();
}

int VBox::getIntValue(QDomElement &element, const QString &name, int index)
int VBox::getIntValue(const QDomElement &element, const QString &name, int index)
{
QString value = getStrValue(element, name, index);

Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/vboxutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class VBox
private:
static QStringList doUPNPSearch(void);
static QString getFirstText(QDomElement &element);
static QString getStrValue(QDomElement &element, const QString &name, int index = 0);
static int getIntValue(QDomElement &element, const QString &name, int index = 0);
static QString getStrValue(const QDomElement &element, const QString &name, int index = 0);
static int getIntValue(const QDomElement &element, const QString &name, int index = 0);
};
#endif // VBOX_UTILS_H
42 changes: 21 additions & 21 deletions mythtv/libs/libmythtv/tv_play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2929,27 +2929,27 @@ void TV::HandleSpeedChangeTimerEvent()
}

///
// \brief Prevent events from being sent to another object.
//
// Selectively block certain KeyPress and Resize events from being sent to
// the specified object. This function is called by Qt before it calls
// Object->event(Event). It can be used by the TV object to either block
// events from being sent to the specified object, or for it to handle the
// events instead of sending them to the specified object. As of mid
// 2021, this filter is only used to redirect some events from the
// MythMainWindow object to the TV object.
//
// \warning If an event will be received by both the MythMainWindow object
// and the TV object, block it instead of redirecting it. Redirecting it
// just causes the event to be handled twice, once in the direct call from
// Qt to TV::event and once in the call from Qt to this function to
// TV::event.
//
// \param Object The QObject whose events are being filtered.
// \param Event The QEvent that is about to be passed to Object->event().
// \return True if the event should be dropped. False if the Qt
// code should call Object->event(Event).
//
/// \brief Prevent events from being sent to another object.
///
/// Selectively block certain KeyPress and Resize events from being sent to
/// the specified object. This function is called by Qt before it calls
/// Object->event(Event). It can be used by the TV object to either block
/// events from being sent to the specified object, or for it to handle the
/// events instead of sending them to the specified object. As of mid
/// 2021, this filter is only used to redirect some events from the
/// MythMainWindow object to the TV object.
///
/// \warning If an event will be received by both the MythMainWindow object
/// and the TV object, block it instead of redirecting it. Redirecting it
/// just causes the event to be handled twice, once in the direct call from
/// Qt to TV::event and once in the call from Qt to this function to
/// TV::event.
///
/// \param Object The QObject whose events are being filtered.
/// \param Event The QEvent that is about to be passed to Object->event().
/// \return True if the event should be dropped. False if the Qt
/// code should call Object->event(Event).
///
bool TV::eventFilter(QObject* Object, QEvent* Event)
{
// We want to intercept all resize events sent to the main window
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/platforms/mythdisplayrpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const MythDisplayModes& MythDisplayRPI::GetVideoModes(void)
m_videoModes.clear();
m_modeMap.clear();
DisplayModeMap screenmap;
HDMI_RES_GROUP_T groups[2] = { HDMI_RES_GROUP_CEA, HDMI_RES_GROUP_DMT };
const HDMI_RES_GROUP_T groups[2] = { HDMI_RES_GROUP_CEA, HDMI_RES_GROUP_DMT };

for (int i = 0; i < 2; ++i)
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/bufferedsocketdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/bufferedsocketdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/eventing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2006 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/eventing.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2006 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/htmlserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2011 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/htmlserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2011 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/httprequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/httprequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/httpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
// 2014 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/httpserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mbroadcastsocketdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mmulticastsocketdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mmulticastsocketdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mythxmlclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/mythxmlclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/jsonSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/soapSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serializers/xmlSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serverSideScripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2011 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/serverSideScripting.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2011 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/servicehost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/servicehost.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/soapclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/soapclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/ssdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/ssdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/ssdpcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/ssdpcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
12 changes: 6 additions & 6 deletions mythtv/libs/libmythupnp/taskqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -164,8 +164,8 @@ void TaskQueue::Clear( )

/////////////////////////////////////////////////////////////////////////////
/// \brief Add a task to run in the future.
// \param msec The number of milliseconds in the future to run this task
// \param pTask A pointer to the task.
/// \param msec The number of milliseconds in the future to run this task
/// \param pTask A pointer to the task.
/////////////////////////////////////////////////////////////////////////////

void TaskQueue::AddTask( std::chrono::milliseconds msec, Task *pTask )
Expand All @@ -177,8 +177,8 @@ void TaskQueue::AddTask( std::chrono::milliseconds msec, Task *pTask )

/////////////////////////////////////////////////////////////////////////////
/// \brief Add a task to run at a specific time.
// \param msec The time when this task should run
// \param pTask A pointer to the task.
/// \param msec The time when this task should run
/// \param pTask A pointer to the task.
/////////////////////////////////////////////////////////////////////////////

void TaskQueue::AddTaskAbsolute( TaskTime ttKey, Task *pTask )
Expand All @@ -194,7 +194,7 @@ void TaskQueue::AddTaskAbsolute( TaskTime ttKey, Task *pTask )

/////////////////////////////////////////////////////////////////////////////
/// \brief Add a task to run now.
// \param pTask A pointer to the task.
/// \param pTask A pointer to the task.
/////////////////////////////////////////////////////////////////////////////

void TaskQueue::AddTask( Task *pTask )
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/taskqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnp.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcds.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcdsobjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcdsobjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2006 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpcmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2006 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnpserviceimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptaskcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptaskevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2006 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptaskevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2006 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptasknotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptasknotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptasksearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnptasksearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2005 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnputil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/upnputil.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2007 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/websocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2015 Stuart Morgan <smorgan@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/wsdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/wsdl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2010 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/xsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2012 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
/////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/xsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Copyright (c) 2012 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/services/music.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/services/music.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright (c) 2017 Paul Harrison <pharrison@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
// Licensed under the GPL v2 or later, see LICENSE for details
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
11 changes: 3 additions & 8 deletions mythtv/programs/mythcommflag/ClassicCommDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,9 @@ void ClassicCommDetector::BuildBlankFrameCommList(void)
{
LOG(VB_COMMFLAG, LOG_INFO, "CommDetect::BuildBlankFrameCommList()");

if (m_blankFrameMap.count() == 0)
return;

auto *bframes = new long long[m_blankFrameMap.count()*2];
auto *c_start = new long long[m_blankFrameMap.count()];
auto *c_end = new long long[m_blankFrameMap.count()];
Expand All @@ -1894,14 +1897,6 @@ void ClassicCommDetector::BuildBlankFrameCommList(void)
for (auto it = m_blankFrameMap.begin(); it != m_blankFrameMap.end(); ++it)
bframes[frames++] = it.key();

if (frames == 0)
{
delete[] c_start;
delete[] c_end;
delete[] bframes;
return;
}

// detect individual commercials from blank frames
// commercial end is set to frame right before ending blank frame to
// account for instances with only a single blank frame between comms.
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/networkcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ void NetworkControl::notifyDataAvailable(void)
}

void NetworkControl::sendReplyToClient(NetworkControlClient *ncc,
QString &reply)
const QString &reply)
{
if (!m_clients.contains(ncc))
{
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/networkcontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class NetworkControl : public ServerPool, public QRunnable
QString processHelp(NetworkCommand *nc);

void notifyDataAvailable(void);
void sendReplyToClient(NetworkControlClient *ncc, QString &reply);
void sendReplyToClient(NetworkControlClient *ncc, const QString &reply);
void customEvent(QEvent *e) override; // QObject

static QString listRecordings(const QString& chanid = "", const QString& starttime = "");
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/playbackbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3565,7 +3565,7 @@ void PlaybackBox::stopPlaylistJobQueueJob(int jobType)
jobType, tmpItem->GetChanID(),
tmpItem->GetRecordingStartTime(), JOB_STOP);

if ((jobType & JOB_COMMFLAG) && (tmpItem))
if (jobType & JOB_COMMFLAG)
{
tmpItem->SetEditing(false);
tmpItem->SetFlagging(false);
Expand Down
40 changes: 20 additions & 20 deletions mythtv/programs/mythfrontend/upnpscanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ void MediaServerItem::Reset(void)
}

/**
* \class MediaServer
* \class UpnpMediaServer
* A simple wrapper containing details about a UPnP Media Server
*/
class MediaServer : public MediaServerItem
class UpnpMediaServer : public MediaServerItem
{
public:
MediaServer()
UpnpMediaServer()
: MediaServerItem(QString("0"), QString(), QString(), QString()),
m_eventSubPath(QString()),
m_friendlyName(QString("Unknown"))
{
}
explicit MediaServer(QUrl URL)
explicit UpnpMediaServer(QUrl URL)
: MediaServerItem(QString("0"), QString(), QString(), QString()),
m_serverURL(std::move(URL)), m_eventSubPath(QString()),
m_friendlyName(QString("Unknown"))
Expand Down Expand Up @@ -225,7 +225,7 @@ void UPNPScanner::GetInitialMetadata(VideoMetadataListManager::metadata_list* li
mediaservers->setPathRoot();

m_lock.lock();
QMutableHashIterator<QString,MediaServer*> it(m_servers);
QMutableHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -271,7 +271,7 @@ void UPNPScanner::GetMetadata(VideoMetadataListManager::metadata_list* list,
mediaservers->setPathRoot();

m_lock.lock();
QMutableHashIterator<QString,MediaServer*> it(m_servers);
QMutableHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -398,7 +398,7 @@ QMap<QString,QString> UPNPScanner::ServerList(void)
{
QMap<QString,QString> servers;
m_lock.lock();
QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -467,7 +467,7 @@ void UPNPScanner::Stop(void)
m_watchdogTimer->stop();

// cleanup our servers and subscriptions
QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -523,7 +523,7 @@ void UPNPScanner::Update(void)
// if our network queue is full, then we may need to come back later
bool reschedule = false;

QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -564,7 +564,7 @@ void UPNPScanner::CheckStatus(void)
// Remove stale servers - the SSDP cache code does not send out removal
// notifications for expired (rather than explicitly closed) connections
m_lock.lock();
QMutableHashIterator<QString,MediaServer*> it(m_servers);
QMutableHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand All @@ -573,7 +573,7 @@ void UPNPScanner::CheckStatus(void)
{
LOG(VB_UPNP, LOG_INFO, LOC + QString("%1 no longer in SSDP cache. Removing")
.arg(it.value()->m_serverURL.toString()));
MediaServer* last = it.value();
UpnpMediaServer* last = it.value();
it.remove();
delete last;
}
Expand Down Expand Up @@ -734,7 +734,7 @@ void UPNPScanner::timerEvent(QTimerEvent * event)
QString usn;

m_lock.lock();
QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -775,7 +775,7 @@ void UPNPScanner::ScheduleUpdate(void)
void UPNPScanner::CheckFailure(const QUrl &url)
{
m_lock.lock();
QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand All @@ -796,7 +796,7 @@ void UPNPScanner::Debug(void)
m_lock.lock();
LOG(VB_UPNP, LOG_INFO, LOC + QString("%1 media servers discovered:")
.arg(m_servers.size()));
QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -831,7 +831,7 @@ void UPNPScanner::BrowseNextContainer(void)
{
QMutexLocker locker(&m_lock);

QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
bool complete = true;
while (it.hasNext())
{
Expand Down Expand Up @@ -943,7 +943,7 @@ void UPNPScanner::AddServer(const QString &usn, const QString &url)
m_lock.lock();
if (!m_servers.contains(usn))
{
m_servers.insert(usn, new MediaServer(url));
m_servers.insert(usn, new UpnpMediaServer(url));
LOG(VB_GENERAL, LOG_INFO, LOC + QString("Adding: %1").arg(usn));
ScheduleUpdate();
}
Expand All @@ -959,7 +959,7 @@ void UPNPScanner::RemoveServer(const QString &usn)
if (m_servers.contains(usn))
{
LOG(VB_GENERAL, LOG_INFO, LOC + QString("Removing: %1").arg(usn));
MediaServer* old = m_servers[usn];
UpnpMediaServer* old = m_servers[usn];
if (old->m_renewalTimerId)
killTimer(old->m_renewalTimerId);
m_servers.remove(usn);
Expand Down Expand Up @@ -1035,8 +1035,8 @@ void UPNPScanner::ParseBrowse(const QUrl &url, QNetworkReply *reply)
// determine the 'server' which requested the browse
m_lock.lock();

MediaServer* server = nullptr;
QHashIterator<QString,MediaServer*> it(m_servers);
UpnpMediaServer* server = nullptr;
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down Expand Up @@ -1300,7 +1300,7 @@ bool UPNPScanner::ParseDescription(const QUrl &url, QNetworkReply *reply)
std::chrono::seconds timeout = 0s;

m_lock.lock();
QHashIterator<QString,MediaServer*> it(m_servers);
QHashIterator<QString,UpnpMediaServer*> it(m_servers);
while (it.hasNext())
{
it.next();
Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythfrontend/upnpscanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "upnpexp.h"
#include "videometadatalistmanager.h"

class MediaServer;
class UpnpMediaServer;
class UPNPSubscription;
class meta_dir_node;

Expand Down Expand Up @@ -124,7 +124,7 @@ class UPNPScanner : public QObject
#else
QRecursiveMutex m_lock;
#endif
QHash<QString,MediaServer*> m_servers;
QHash<QString,UpnpMediaServer*> m_servers;
QNetworkAccessManager *m_network {nullptr};
// TODO Move to QMultiHash when we move to Qt >=4.7
// QHash(QUrl) unsupported on < 4.7
Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythwelcome/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ int main(int argc, char **argv)
// Block by running an event loop until last screen is removed
QEventLoop block;
QObject::connect(mainStack, &MythScreenStack::topScreenChanged,
&block, [&](MythScreenType* _screen)
{ if (!_screen) block.quit(); });
&block, [&](const MythScreenType* _screen)
{ if (!_screen) block.quit(); });
block.exec();
}

Expand Down
7 changes: 2 additions & 5 deletions mythtv/programs/programs-libs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ win32-msvc*:INCLUDEPATH -= $$SRC_PATH_BARE/../platform/win32/msvc/external/pthre
INCLUDEPATH += ../.. ../../libs/ ../../libs/libmyth ../../libs/libmyth/audio
INCLUDEPATH += ../../libs/libmythtv ../.. ../../external/FFmpeg
INCLUDEPATH += ../../libs/libmythupnp ../../libs/libmythui ../../libs/libmythmetadata
INCLUDEPATH += ../../libs/libmythlivemedia ../../libs/libmythbase
INCLUDEPATH += ../../libs/libmythbase

!win32-msvc* {
QMAKE_CXXFLAGS += -isystem ../../external/libmythdvdnav/dvdnav
Expand Down Expand Up @@ -64,7 +64,6 @@ LIBS += -lmythservicecontracts-$$LIBVERSION
LIBS += -lmythprotoserver-$$LIBVERSION

using_frontend: using_opengl: QT += opengl
using_live:LIBS += -L../../libs/libmythlivemedia -lmythlivemedia-$$LIBVERSION
using_mheg:LIBS += -L../../libs/libmythfreemheg -lmythfreemheg-$$LIBVERSION
using_hdhomerun:LIBS += -lhdhomerun
using_taglib: LIBS += $$CONFIG_TAGLIB_LIBS
Expand Down Expand Up @@ -95,16 +94,14 @@ win32 {
POST_TARGETDEPS += ../../libs/libmythbase/libmythbase-$${MYTH_SHLIB_EXT}
POST_TARGETDEPS += ../../libs/libmythservicecontracts/libmythservicecontracts-$${MYTH_SHLIB_EXT}
POST_TARGETDEPS += ../../libs/libmythprotoserver/libmythprotoserver-$${MYTH_SHLIB_EXT}

using_live: POST_TARGETDEPS += ../../libs/libmythlivemedia/libmythlivemedia-$${MYTH_SHLIB_EXT}
}

DEPENDPATH += ../.. ../../libs ../../libs/libmyth ../../libs/libmyth/audio
DEPENDPATH += ../../libs/libmythtv
DEPENDPATH += ../../libs/libmythtv/mpeg ../../libs/libmythtv/vbitext
DEPENDPATH += ../.. ../../external/FFmpeg
DEPENDPATH += ../../libs/libmythupnp ../../libs/libmythui
DEPENDPATH += ../../libs/libmythlivemedia ../../libmythbase
DEPENDPATH += ../../libmythbase
DEPENDPATH +=../../libs/libmythservicecontracts ../../libs/libmythprotoserver

using_mingw:DEFINES += USING_MINGW
Expand Down
165 changes: 165 additions & 0 deletions mythtv/programs/scripts/metadata/Music/discid/COPYING.LESSER
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
40 changes: 40 additions & 0 deletions mythtv/programs/scripts/metadata/Music/musicbrainzngs/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Copyright 2011 Alastair Porter, Adrian Sampson, and others.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


The license for the file `musicbrainzngs/compat.py` is

Copyright (c) 2012 Kenneth Reitz.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2 changes: 1 addition & 1 deletion mythtv/programs/scripts/metadata/Television/ttvdb4.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ----------------------------------------------------
# Purpose: MythTV Python Bindings for TheTVDB v4 API
# Copyright: (c) 2021 Roland Ernst
# License: GPL v2 or later, see COPYING for details
# License: GPL v2 or later, see LICENSE for details
# ----------------------------------------------------


Expand Down