Skip to content

Commit

Permalink
fixup: Fix compile with gcc 4.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Sep 7, 2018
1 parent 6c4d6d6 commit b746d45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xbmc/music/MusicDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2346,7 +2346,7 @@ bool CMusicDatabase::GetSongByFileName(const std::string& strFileNameAndPath, CS
"where strFileName='%s' and strPath='%s'",
strFileName.c_str(), strPath.c_str());
if (startOffset)
strSQL += PrepareSQL(" AND iStartOffset=%" PRIi64, startOffset);
strSQL += PrepareSQL(" AND iStartOffset=%" PRId64, startOffset);

int idSong = (int)strtol(GetSingleValue(strSQL).c_str(), NULL, 10);
if (idSong > 0)
Expand Down
2 changes: 1 addition & 1 deletion xbmc/playlists/PlayListM3U.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void CPlayListM3U::Save(const std::string& strFileName) const
return; // error
if (item->m_lStartOffset != 0 || item->m_lEndOffset != 0)
{
strLine = StringUtils::Format("%s:%" PRIi64 ",%" PRIi64 "\n", OffsetMarker, item->m_lStartOffset, item->m_lEndOffset);
strLine = StringUtils::Format("%s:%" PRId64 ",%" PRId64 "\n", OffsetMarker, item->m_lStartOffset, item->m_lEndOffset);
file.Write(strLine.c_str(),strLine.size());
}
std::string strFileName = ResolveURL(item);
Expand Down
2 changes: 1 addition & 1 deletion xbmc/windowing/wayland/WinSystemWayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ void CWinSystemWayland::PrepareFramePresentation()
}
m_latencyMovingAverage = m_latencyMovingAverage + iter->latency / LATENCY_MOVING_AVERAGE_SIZE + adjust;

CLog::Log(LOGDEBUG, LOGAVTIMING, "Presentation feedback: %" PRIi64 " ns -> moving average %f s", latency, static_cast<double> (m_latencyMovingAverage));
CLog::Log(LOGDEBUG, LOGAVTIMING, "Presentation feedback: %" PRId64 " ns -> moving average %f s", latency, static_cast<double> (m_latencyMovingAverage));
};
feedback.on_discarded() = [this,iter]()
{
Expand Down
2 changes: 1 addition & 1 deletion xbmc/windows/GUIMediaWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ void CGUIMediaWindow::GetDirectoryHistoryString(const CFileItem* pItem, std::str
{
// Could be a cue item, all items of a cue share the same filename
// so add the offsets to build the history string
strHistoryString = StringUtils::Format("%" PRIi64 "%" PRIi64,
strHistoryString = StringUtils::Format("%" PRId64 "%" PRId64,
pItem->m_lStartOffset,
pItem->m_lEndOffset);
strHistoryString += pItem->GetPath();
Expand Down

0 comments on commit b746d45

Please sign in to comment.