diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-03-15 21:30:14 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-03-15 21:30:14 (GMT) |
commit | ee18ce7f418ef89e89d79fe804550be9a4918780 (patch) | |
tree | f0e56666cc20ee74f5bb6aa5df0071d5dc324b82 /linhes/mythtv/0031-UPnP-Reduce-startup-latency-by-moving-blocking-code-to-own-thread.patch | |
parent | 21dca81b1eecef330cbece807acf0994a9a12acb (diff) | |
download | linhes_pkgbuild-ee18ce7f418ef89e89d79fe804550be9a4918780.zip linhes_pkgbuild-ee18ce7f418ef89e89d79fe804550be9a4918780.tar.gz linhes_pkgbuild-ee18ce7f418ef89e89d79fe804550be9a4918780.tar.bz2 |
mythtv: update and add some patches
Diffstat (limited to 'linhes/mythtv/0031-UPnP-Reduce-startup-latency-by-moving-blocking-code-to-own-thread.patch')
-rw-r--r-- | linhes/mythtv/0031-UPnP-Reduce-startup-latency-by-moving-blocking-code-to-own-thread.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/linhes/mythtv/0031-UPnP-Reduce-startup-latency-by-moving-blocking-code-to-own-thread.patch b/linhes/mythtv/0031-UPnP-Reduce-startup-latency-by-moving-blocking-code-to-own-thread.patch new file mode 100644 index 0000000..288a243 --- /dev/null +++ b/linhes/mythtv/0031-UPnP-Reduce-startup-latency-by-moving-blocking-code-to-own-thread.patch @@ -0,0 +1,71 @@ +diff -Naur mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythupnp/ssdp.cpp mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythupnp/ssdp.cpp +--- mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythupnp/ssdp.cpp 2021-05-18 16:11:31.379999938 +0200 ++++ mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythupnp/ssdp.cpp 2021-05-18 16:11:34.569999938 +0200 +@@ -155,21 +155,21 @@ + // ------------------------------------------------------------------ + + LOG(VB_UPNP, LOG_INFO, +- "SSDP::EnableNotifications() - sending NTS_byebye"); +- m_pNotifyTask->SetNTS( NTS_byebye ); +- m_pNotifyTask->Execute( nullptr ); +- +- m_bAnnouncementsEnabled = true; ++ "SSDP::EnableNotifications() - sending NTS_byebye2"); ++ m_pNotifyTask->SetNTS( NTS_byebye2 ); ++ } ++ else ++ { ++ LOG(VB_UPNP, LOG_INFO, ++ "SSDP::EnableNotifications() - sending NTS_alive"); ++ m_pNotifyTask->SetNTS( NTS_alive ); + } + ++ m_bAnnouncementsEnabled = true; ++ + // ------------------------------------------------------------------ + // Add Announcement Task to the Queue + // ------------------------------------------------------------------ +- +- LOG(VB_UPNP, LOG_INFO, "SSDP::EnableNotifications() - sending NTS_alive"); +- +- m_pNotifyTask->SetNTS( NTS_alive ); +- + TaskQueue::Instance()->AddTask(m_pNotifyTask); + + LOG(VB_UPNP, LOG_INFO, +diff -Naur mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythupnp/upnptasknotify.cpp mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythupnp/upnptasknotify.cpp +--- mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythupnp/upnptasknotify.cpp 2021-05-18 16:11:31.379999938 +0200 ++++ mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythupnp/upnptasknotify.cpp 2021-05-18 16:11:34.586666605 +0200 +@@ -165,6 +167,11 @@ + + if (m_eNTS == NTS_alive) + pQueue->AddTask( (m_nMaxAge / 2), (Task *)this ); ++ else if (m_eNTS == NTS_byebye2) ++ { ++ m_eNTS = NTS_alive; ++ pQueue->AddTask( this ); ++ } + + m_mutex.unlock(); + +diff -Naur mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythupnp/upnptasknotify.h mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythupnp/upnptasknotify.h +--- mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythupnp/upnptasknotify.h 2021-05-18 16:11:31.379999938 +0200 ++++ mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythupnp/upnptasknotify.h 2021-05-18 16:11:34.586666605 +0200 +@@ -38,7 +38,8 @@ + enum UPnpNotifyNTS + { + NTS_alive = 0, +- NTS_byebye = 1 ++ NTS_byebye = 1, ++ NTS_byebye2 + }; + + ///////////////////////////////////////////////////////////////////////////// +@@ -89,6 +90,7 @@ + { + case NTS_alive : return( "ssdp:alive" ); + case NTS_byebye: return( "ssdp:byebye" ); ++ case NTS_byebye2: return( "ssdp:byebye" ); + } + return( "unknown" ); + } |