aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenen92 <92enen@gmail.com>2023-12-05 10:41:59 +0000
committerenen92 <92enen@gmail.com>2023-12-05 10:41:59 +0000
commita633fed5361a92002941902a903bb207b0cff414 (patch)
treecb651d3c0cf67e5dc9570766eb36e5b3e832c6b8
parente48bcb21a949813c20c6922671cf71b45b996ed1 (diff)
[EDL] Remove hungarian notation
-rw-r--r--xbmc/cores/VideoPlayer/Edl.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/xbmc/cores/VideoPlayer/Edl.cpp b/xbmc/cores/VideoPlayer/Edl.cpp
index 83f24a4e77..01c7ed09b1 100644
--- a/xbmc/cores/VideoPlayer/Edl.cpp
+++ b/xbmc/cores/VideoPlayer/Edl.cpp
@@ -497,21 +497,21 @@ bool CEdl::ReadBeyondTV(const std::string& strMovie)
return false;
}
- const tinyxml2::XMLElement* pRoot = xmlDoc.RootElement();
- if (!pRoot || strcmp(pRoot->Value(), "cutlist"))
+ const tinyxml2::XMLElement* root = xmlDoc.RootElement();
+ if (!root || strcmp(root->Value(), "cutlist"))
{
CLog::Log(LOGERROR, "{} - Invalid Beyond TV file: {}. Expected root node to be <cutlist>",
__FUNCTION__, CURL::GetRedacted(beyondTVFilename));
return false;
}
- bool bValid = true;
- const tinyxml2::XMLElement* pRegion = pRoot->FirstChildElement("Region");
- while (bValid && pRegion)
+ bool valid = true;
+ const tinyxml2::XMLElement* region = root->FirstChildElement("Region");
+ while (valid && region)
{
- const tinyxml2::XMLElement* pStart = pRegion->FirstChildElement("start");
- const tinyxml2::XMLElement* pEnd = pRegion->FirstChildElement("end");
- if (pStart && pEnd && pStart->FirstChild() && pEnd->FirstChild())
+ const tinyxml2::XMLElement* start = region->FirstChildElement("start");
+ const tinyxml2::XMLElement* end = region->FirstChildElement("end");
+ if (start && end && start->FirstChild() && end->FirstChild())
{
/*
* Need to divide the start and end times by a factor of 10,000 to get msec.
@@ -526,17 +526,17 @@ bool CEdl::ReadBeyondTV(const std::string& strMovie)
* atof() returns 0 if there were any problems and will subsequently be rejected in AddEdit().
*/
Edit edit;
- edit.start = std::lround((std::atof(pStart->FirstChild()->Value()) / 10000));
- edit.end = std::lround((std::atof(pEnd->FirstChild()->Value()) / 10000));
+ edit.start = std::lround((std::atof(start->FirstChild()->Value()) / 10000));
+ edit.end = std::lround((std::atof(end->FirstChild()->Value()) / 10000));
edit.action = Action::COMM_BREAK;
- bValid = AddEdit(edit);
+ valid = AddEdit(edit);
}
else
- bValid = false;
+ valid = false;
- pRegion = pRegion->NextSiblingElement("Region");
+ region = region->NextSiblingElement("Region");
}
- if (!bValid)
+ if (!valid)
{
CLog::Log(LOGERROR,
"{} - Invalid Beyond TV file: {}. Clearing any valid commercial breaks found.",