Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refs #10961. Add missing RunProlog()/RunEpilog()

I don't know if this addresses the issue of the ticket or not
but this should address the warnings about DB connection handling
in #10934 which may be related. FYI The QRunnable::run()
implementations don't need this as calling this is handled
by MThreadPool for those.
  • Loading branch information...
commit 5cc6d1c19ebaf00dfb17d655c5c6da02af5faf7c 1 parent a7f980f
@daniel-kristjansson daniel-kristjansson authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
View
8 mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
@@ -1024,6 +1024,8 @@ class StreamWorker : public MThread
protected:
void run(void)
{
+ RunProlog();
+
int retries = 0;
while (!m_interrupted)
{
@@ -1121,6 +1123,8 @@ class StreamWorker : public MThread
// Signal we're done
Wakeup();
}
+
+ RunEpilog();
}
int BandwidthAdaptation(int progid, uint64_t &bandwidth)
@@ -1210,6 +1214,8 @@ class PlaylistWorker : public MThread
protected:
void run(void)
{
+ RunProlog();
+
double wait = 0.5;
double factor = m_parent->GetCurrentStream()->Live() ? 1.0 : 2.0;
@@ -1288,6 +1294,8 @@ class PlaylistWorker : public MThread
m_wakeup = ((int64_t)(hls->TargetDuration() * wait * factor)
* (int64_t)1000);
}
+
+ RunEpilog();
}
private:
Please sign in to comment.
Something went wrong with that request. Please try again.