Skip to content

Commit

Permalink
Make packet name constant-width
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Jun 15, 2016
1 parent 1bee0e9 commit 307777d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/DVDCodecs/Video/SteamLinkVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ bool CSteamLinkVideo::AddPacket(uint8_t* pData, int iSize)
bool CSteamLinkVideo::BeginFrame(int nFrameSize)
{ //return SLVideo_BeginFrame(static_cast<CSLVideoStream*>(m_stream), nFrameSize) == 0;
unsigned int time = SystemClockMillis();
std::string strFileName = StringUtils::Format("%s/%d_%d.%03d.dat", m_directory.c_str(), m_packetCount, time / 1000, time % 1000);
std::string strFileName = StringUtils::Format("%s/%04d_%03d.%03d.dat", m_directory.c_str(), m_packetCount, time / 1000, time % 1000);

return m_file.OpenForWrite(strFileName);
}
Expand Down

0 comments on commit 307777d

Please sign in to comment.