Skip to content

Commit

Permalink
Merge pull request #116 from phunkyfish/race-condition-and-windows-fix
Browse files Browse the repository at this point in the history
Windows fixes and Timeshift buffer deletion
  • Loading branch information
phunkyfish authored Oct 16, 2018
2 parents 9f3e9c0 + 5d5f6dc commit bb7dd7f
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 6 deletions.
6 changes: 5 additions & 1 deletion pvr.vuplus/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.vuplus"
version="3.12.5"
version="3.12.6"
name="Enigma2 Client"
provider-name="Joerg Dembski and Ross Nicholson">
<requires>@ADDON_DEPENDS@</requires>
Expand Down Expand Up @@ -175,6 +175,10 @@
<disclaimer lang="zh_TW">這是測試版軟體!其原創作者並無法對於以下情況負責,包含:錄影失敗,不正確的定時設定,多餘時數,或任何產生的其它不良影響...</disclaimer>
<platform>@PLATFORM@</platform>
<news>
v3.12.6
- Fixed: Windows build fix
- Fixed: tsbuffer.ts never got deleted, fixes #115

v3.12.5
- Fixed: Large refactor for code organisation
- Added: Disk space, only for mounts configured for recordings - Requires OpenWebIf 1.3.5, fixes #112
Expand Down
4 changes: 4 additions & 0 deletions pvr.vuplus/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v3.12.6
- Fixed: Windows build fix
- Fixed: tsbuffer.ts never got deleted, fixes #115

v3.12.5
- Fixed: Large refactor for code organisation
- Fixed: Disk space, only for mounts configured for recordings - Requires OpenWebIf 1.3.5, fixes #112
Expand Down
4 changes: 0 additions & 4 deletions src/Enigma2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
#include "util/XMLUtils.h"
#include <p8-platform/util/StringUtils.h>

#if defined(_WIN32)
#include <Bits.h>
#endif

using namespace ADDON;
using namespace P8PLATFORM;
using namespace enigma2;
Expand Down
2 changes: 1 addition & 1 deletion src/enigma2/Epg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void Epg::InitialiseEpgReadyFile()
bool Epg::IsInitialEpgCompleted()
{
m_readHandle = XBMC->OpenFile(INITIAL_EPG_READY_FILE.c_str(), 0);
byte buf[1];
char buf[1];
XBMC->ReadFile(m_readHandle, buf, 1);
XBMC->CloseFile(m_readHandle);
char buf2[] = { "N" };
Expand Down
4 changes: 4 additions & 0 deletions src/enigma2/TimeshiftBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ TimeshiftBuffer::~TimeshiftBuffer(void)
}
if (m_filebufferReadHandle)
XBMC->CloseFile(m_filebufferReadHandle);

if (!XBMC->DeleteFile(m_bufferPath.c_str()))
Logger::Log(LEVEL_ERROR, "%s Unable to delete file when timeshift buffer is deleted: %s", __FUNCTION__, m_bufferPath.c_str());

SAFE_DELETE(m_strReader);
Logger::Log(LEVEL_DEBUG, "Timeshift: Stopped");
}
Expand Down
1 change: 1 addition & 0 deletions src/enigma2/data/AutoTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "util/XMLUtils.h"
#include "p8-platform/util/StringUtils.h"

using namespace enigma2;
using namespace enigma2::data;
using namespace enigma2::utilities;

Expand Down
1 change: 1 addition & 0 deletions src/enigma2/data/BaseEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "inttypes.h"
#include "p8-platform/util/StringUtils.h"

using namespace enigma2;
using namespace enigma2::data;

void BaseEntry::ProcessPrependMode(PrependOutline prependOutlineMode)
Expand Down
1 change: 1 addition & 0 deletions src/enigma2/data/Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "util/XMLUtils.h"
#include "p8-platform/util/StringUtils.h"

using namespace enigma2;
using namespace enigma2::data;
using namespace enigma2::utilities;

Expand Down
1 change: 1 addition & 0 deletions src/enigma2/data/ChannelGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "inttypes.h"
#include "util/XMLUtils.h"

using namespace enigma2;
using namespace enigma2::data;
using namespace enigma2::utilities;

Expand Down
1 change: 1 addition & 0 deletions src/enigma2/data/RecordingEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "util/XMLUtils.h"
#include "p8-platform/util/StringUtils.h"

using namespace enigma2;
using namespace enigma2::data;
using namespace enigma2::utilities;

Expand Down
1 change: 1 addition & 0 deletions src/enigma2/data/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "util/XMLUtils.h"
#include "p8-platform/util/StringUtils.h"

using namespace enigma2;
using namespace enigma2::data;
using namespace enigma2::utilities;

Expand Down

0 comments on commit bb7dd7f

Please sign in to comment.