diff options
author | grog <grog@FreeBSD.org> | 2007-02-24 10:30:36 +0800 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2007-02-24 10:30:36 +0800 |
commit | 4421920aed17d2ff50bec402c8a13559ddb45c2f (patch) | |
tree | 52cd6d733b0bbbe647882fcb907a1b5f45a1d9f9 | |
parent | 2bc8d5e75e55d9174fb6123be4d1f8bc1397a1bb (diff) | |
download | freebsd-ports-gnome-4421920aed17d2ff50bec402c8a13559ddb45c2f.tar.gz freebsd-ports-gnome-4421920aed17d2ff50bec402c8a13559ddb45c2f.tar.zst freebsd-ports-gnome-4421920aed17d2ff50bec402c8a13559ddb45c2f.zip |
Fix communication between front end and back end.
Submitted by: usleepless <usleepless@gmail.com>
PR: ports/108667
-rw-r--r-- | multimedia/mythtv/files/patch-mainserver.cpp | 32 | ||||
-rw-r--r-- | multimedia/mythtv/files/patch-mpegrecorder.cpp | 19 | ||||
-rw-r--r-- | multimedia/mythtv/files/patch-videodev_myth.h | 21 |
3 files changed, 72 insertions, 0 deletions
diff --git a/multimedia/mythtv/files/patch-mainserver.cpp b/multimedia/mythtv/files/patch-mainserver.cpp new file mode 100644 index 000000000000..69a28c1170de --- /dev/null +++ b/multimedia/mythtv/files/patch-mainserver.cpp @@ -0,0 +1,32 @@ +--- programs/mythbackend/mainserver.cpp.orig Wed Jan 31 22:16:22 2007 ++++ programs/mythbackend/mainserver.cpp Wed Jan 31 16:16:00 2007 +@@ -238,9 +238,9 @@ + return; + } + +- readReadyLock.lock(); ++ // readReadyLock.lock(); + +- sock->Lock(); ++ // sock->Lock(); + + //if (socket->IsInProcess()) + //{ +@@ -287,7 +287,7 @@ + + prt->setup(sock); + +- readReadyLock.unlock(); ++ //readReadyLock.unlock(); + } + + void MainServer::ProcessRequest(MythSocket *sock) +@@ -301,7 +301,7 @@ + ProcessRequestWork(sock); + } + +- sock->Unlock(); ++ //sock->Unlock(); + //sock->SetInProcess(false); + } + diff --git a/multimedia/mythtv/files/patch-mpegrecorder.cpp b/multimedia/mythtv/files/patch-mpegrecorder.cpp new file mode 100644 index 000000000000..2b2acdc96b35 --- /dev/null +++ b/multimedia/mythtv/files/patch-mpegrecorder.cpp @@ -0,0 +1,19 @@ +--- libs/libmythtv/mpegrecorder.cpp.orig Wed Jan 31 22:18:54 2007 ++++ libs/libmythtv/mpegrecorder.cpp Wed Jan 31 16:16:27 2007 +@@ -603,7 +603,7 @@ + tv.tv_usec = 0; + FD_ZERO(&rdset); + FD_SET(readfd, &rdset); +- ++#ifdef _nuniet_ + switch (select(readfd + 1, &rdset, NULL, NULL, &tv)) + { + case -1: +@@ -627,6 +627,7 @@ + + default: break; + } ++#endif + + ret = read(readfd, buffer, bufferSize); + diff --git a/multimedia/mythtv/files/patch-videodev_myth.h b/multimedia/mythtv/files/patch-videodev_myth.h new file mode 100644 index 000000000000..ff77c0c8b7ae --- /dev/null +++ b/multimedia/mythtv/files/patch-videodev_myth.h @@ -0,0 +1,21 @@ +--- ./libs/libmythtv/videodev_myth.h.orig Wed Jan 31 22:16:51 2007 ++++ ./libs/libmythtv/videodev_myth.h Wed Jan 31 22:28:06 2007 +@@ -5,12 +5,12 @@ + + #if defined(__FreeBSD__) || defined(CONFIG_DARWIN) + #include <sys/types.h> +-typedef unsigned long __u32; +-typedef unsigned short __u16; +-typedef int __s32; +-typedef unsigned char __u8; +-typedef unsigned long long __u64; +-typedef long long __s64; ++typedef uint32_t __u32; ++typedef uint16_t __u16; ++typedef int32_t __s32; ++typedef uint8_t __u8; ++typedef uint32_t __u64; ++typedef int32_t __s64; + #else + #include <linux/types.h> + #include <linux/version.h> |