Skip to content

Commit

Permalink
[Omega] Fix TV channels stuttering after wake from suspend - take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ksooo committed Nov 14, 2023
1 parent 842826f commit fe1ab42
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
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="21.1.1"
version="21.1.2"
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v21.1.2
- Fix TV channels stuttering after wake from suspend - take 2

v21.1.1
- Fix TV channels stuttering after wake from suspend

Expand Down
9 changes: 5 additions & 4 deletions src/Tvheadend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1881,10 +1881,6 @@ void CTvheadend::SyncInitCompleted()
return;

/* Rebuild state */
for (auto* dmx : m_dmx)
dmx->RebuildState();

m_vfs->RebuildState();
m_timeRecordings.RebuildState();
m_autoRecordings.RebuildState();

Expand Down Expand Up @@ -2021,6 +2017,11 @@ void CTvheadend::SyncEpgCompleted()

void CTvheadend::SyncCompleted()
{
for (auto* dmx : m_dmx)
dmx->RebuildState();

m_vfs->RebuildState();

SyncEpgCompleted();

m_asyncState.SetState(ASYNC_DONE);
Expand Down
2 changes: 2 additions & 0 deletions src/tvheadend/HTSPDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ void HTSPDemuxer::RebuildState()
Logger::Log(LogLevel::LEVEL_DEBUG, "demux re-starting stream");

std::unique_lock<std::recursive_mutex> lock(m_conn.Mutex());

m_subscription.SendUnsubscribe(lock);
m_subscription.SendSubscribe(lock, 0, 0, true);
m_subscription.SendSpeed(lock, 0, true);

Expand Down

0 comments on commit fe1ab42

Please sign in to comment.