Skip to content

Commit

Permalink
Merge pull request #403 from ksooo/fix-isrealtimestream
Browse files Browse the repository at this point in the history
4.4.14 Fix HTSPDemuxer::IsRealTimeStream to always return true if subscription is active.
  • Loading branch information
ksooo committed Feb 17, 2019
2 parents e394c79 + 8f2915b commit 2b7348a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pvr.hts/addon.xml.in
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.hts"
version="4.4.13"
version="4.4.14"
name="Tvheadend HTSP Client"
provider-name="Adam Sutton, Sam Stenvall, Lars Op den Kamp, Kai Sommerfeld">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions pvr.hts/changelog.txt
@@ -1,3 +1,6 @@
4.4.14
- Fix HTSPDemuxer::IsRealTimeStream to always return true if subscription is active.

4.4.13
- Fixed missing description in EPG and DVR tags.

Expand Down
7 changes: 1 addition & 6 deletions src/tvheadend/HTSPDemuxer.cpp
Expand Up @@ -297,12 +297,7 @@ bool HTSPDemuxer::IsTimeShifting() const

bool HTSPDemuxer::IsRealTimeStream() const
{
if (!m_subscription.IsActive())
return false;

/* Handle as real time when reading close to the EOF (10 secs) */
CLockObject lock(m_mutex);
return (m_timeshiftStatus.shift < 10000000);
return m_subscription.IsActive();
}

PVR_ERROR HTSPDemuxer::GetStreamTimes(PVR_STREAM_TIMES *times) const
Expand Down

0 comments on commit 2b7348a

Please sign in to comment.