Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pvr.hts/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.hts"
version="22.8.1"
version="22.8.2"
name="Tvheadend HTSP Client"
provider-name="Adam Sutton, Sam Stenvall, Lars Op den Kamp, Kai Sommerfeld">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
8 changes: 8 additions & 0 deletions pvr.hts/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
v22.8.2
- Translations updates from Weblate
- Fix compilation on armv7 with gcc15
- Fix hang on channel unpause

v22.8.1
- recompie for new API

v22.8.0
- Kodi inputstream API update to version 3.4.0

Expand Down
5 changes: 5 additions & 0 deletions src/Tvheadend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3390,6 +3390,11 @@ PVR_ERROR CTvheadend::GetDescrambleInfo(int channelUid, kodi::addon::PVRDescramb
return m_dmx_active->CurrentDescrambleInfo(info);
}

void CTvheadend::PauseStream(bool paused)
{
m_dmx_active->Pause(paused);
}

bool CTvheadend::IsTimeshifting()
{
return m_dmx_active->IsTimeShifting();
Expand Down
1 change: 1 addition & 0 deletions src/Tvheadend.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class ATTR_DLL_LOCAL CTvheadend : public kodi::addon::CInstancePVRClient,
PVR_ERROR GetSignalStatus(int channelUid, kodi::addon::PVRSignalStatus& sig) override;
PVR_ERROR GetDescrambleInfo(int channelUid, kodi::addon::PVRDescrambleInfo& info) override;
bool CanPauseStream() override { return HasCapability("timeshift"); }
void PauseStream(bool paused) override;
bool CanSeekStream() override { return HasCapability("timeshift"); }
bool IsTimeshifting();
bool IsRealTimeStream() override;
Expand Down
6 changes: 6 additions & 0 deletions src/tvheadend/HTSPDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,12 @@ bool HTSPDemuxer::IsPaused() const
return false;
}

void HTSPDemuxer::Pause(bool paused)
{
if (!paused)
m_lastPkt = 0;
}

void HTSPDemuxer::SetStreamingProfile(const std::string& profile)
{
m_subscription.SetProfile(profile);
Expand Down
1 change: 1 addition & 0 deletions src/tvheadend/HTSPDemuxer.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class HTSPDemuxer
uint32_t GetChannelId() const;
time_t GetLastUse() const;
bool IsPaused() const;
void Pause(bool paused);

/**
* Tells each demuxer to use the specified profile for new subscriptions
Expand Down