diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2019-10-12 07:26:44 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2019-10-12 07:26:44 +0000 |
commit | 08aef2b2b8000168405597c50f7c068710c506c2 (patch) | |
tree | 8f909bde67773fd9dfde48d0f362b8c2c04cfe82 /multimedia/ustreamer | |
parent | 81f9ebe9d390f1da637b0d9d6a4ab17b0fb7eddb (diff) |
multimedia/ustreamer: Update 1.0 -> 1.9
Reported by: portscout
Notes
Notes:
svn path=/head/; revision=514321
Diffstat (limited to 'multimedia/ustreamer')
-rw-r--r-- | multimedia/ustreamer/Makefile | 3 | ||||
-rw-r--r-- | multimedia/ustreamer/distinfo | 6 | ||||
-rw-r--r-- | multimedia/ustreamer/files/patch-src_encoders_omx_formatters.h | 24 | ||||
-rw-r--r-- | multimedia/ustreamer/files/patch-src_threading.h | 11 | ||||
-rw-r--r-- | multimedia/ustreamer/files/patch-src_tools.h | 22 |
5 files changed, 21 insertions, 45 deletions
diff --git a/multimedia/ustreamer/Makefile b/multimedia/ustreamer/Makefile index eee2ffb22da3..2d14c556111c 100644 --- a/multimedia/ustreamer/Makefile +++ b/multimedia/ustreamer/Makefile @@ -2,8 +2,7 @@ PORTNAME= ustreamer DISTVERSIONPREFIX= v -DISTVERSION= 1.0 -PORTREVISION= 2 +DISTVERSION= 1.9 CATEGORIES= multimedia net MAINTAINER= yuri@FreeBSD.org diff --git a/multimedia/ustreamer/distinfo b/multimedia/ustreamer/distinfo index 72e56930a2c2..28ced46b0a49 100644 --- a/multimedia/ustreamer/distinfo +++ b/multimedia/ustreamer/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1563008797 -SHA256 (pi-kvm-ustreamer-v1.0_GH0.tar.gz) = fc22e861e164d1cc34b43f20ef85ceca41ff3cf22926438f8c8b1057827bb68d -SIZE (pi-kvm-ustreamer-v1.0_GH0.tar.gz) = 87975 +TIMESTAMP = 1570864748 +SHA256 (pi-kvm-ustreamer-v1.9_GH0.tar.gz) = 04ac714e5b0fb8ba37d7b6df510aec807187db5d5bd2f9468ee0caea6d2b1f55 +SIZE (pi-kvm-ustreamer-v1.9_GH0.tar.gz) = 92600 diff --git a/multimedia/ustreamer/files/patch-src_encoders_omx_formatters.h b/multimedia/ustreamer/files/patch-src_encoders_omx_formatters.h deleted file mode 100644 index 16ad5c65b396..000000000000 --- a/multimedia/ustreamer/files/patch-src_encoders_omx_formatters.h +++ /dev/null @@ -1,24 +0,0 @@ ---- src/encoders/omx/formatters.h.orig 2019-04-27 06:14:24 UTC -+++ src/encoders/omx/formatters.h -@@ -34,12 +34,21 @@ - #include "../../tools.h" - - -+#if defined(__FreeBSD__) -+#define LOG_OMX_ERROR(_error, _msg, ...) { \ -+ LOGGING_LOCK; \ -+ printf("-- ERROR [%.03Lf tid=%ld] -- " _msg ": %s\n", get_now_monotonic(), \ -+ pthread_getthreadid_np(), ##__VA_ARGS__, omx_error_to_string(_error)); \ -+ LOGGING_UNLOCK; \ -+ } -+#else - #define LOG_OMX_ERROR(_error, _msg, ...) { \ - LOGGING_LOCK; \ - printf("-- ERROR [%.03Lf tid=%ld] -- " _msg ": %s\n", get_now_monotonic(), \ - syscall(SYS_gettid), ##__VA_ARGS__, omx_error_to_string(_error)); \ - LOGGING_UNLOCK; \ - } -+#endif - - - const char *omx_error_to_string(OMX_ERRORTYPE error); diff --git a/multimedia/ustreamer/files/patch-src_threading.h b/multimedia/ustreamer/files/patch-src_threading.h new file mode 100644 index 000000000000..a66aabdb761e --- /dev/null +++ b/multimedia/ustreamer/files/patch-src_threading.h @@ -0,0 +1,11 @@ +--- src/threading.h.orig 2019-10-12 07:24:29 UTC ++++ src/threading.h +@@ -102,7 +102,7 @@ INLINE void thread_get_name(char *name) { // Always re + # endif + if (retval < 0) { + #endif +- assert(snprintf(name, MAX_THREAD_NAME, "tid=%d", (pid_t)syscall(SYS_gettid)) > 0); ++ assert(snprintf(name, MAX_THREAD_NAME, "tid=%d", (pid_t)syscall(SYS_thr_self)) > 0); + #ifdef WITH_PTHREAD_NP + } + #endif diff --git a/multimedia/ustreamer/files/patch-src_tools.h b/multimedia/ustreamer/files/patch-src_tools.h index 60a1b5d7b6ba..20556fc2f083 100644 --- a/multimedia/ustreamer/files/patch-src_tools.h +++ b/multimedia/ustreamer/files/patch-src_tools.h @@ -1,8 +1,8 @@ ---- src/tools.h.orig 2019-04-27 06:12:11 UTC +--- src/tools.h.orig 2019-10-11 20:37:25 UTC +++ src/tools.h -@@ -36,6 +36,13 @@ - #include <sys/ioctl.h> - #include <sys/syscall.h> +@@ -40,6 +40,13 @@ + #define INLINE inline __attribute__((always_inline)) + #define UNUSED __attribute__((unused)) +#ifndef CLOCK_MONOTONIC_RAW +# ifdef CLOCK_MONOTONIC_FAST @@ -12,15 +12,5 @@ +# endif +#endif - #define A_THREAD_CREATE(_tid, _func, _arg) assert(!pthread_create(_tid, NULL, _func, _arg)) - #define A_THREAD_JOIN(_tid) assert(!pthread_join(_tid, NULL)) -@@ -106,5 +113,9 @@ INLINE long double get_now_real(void) { - } - - INLINE pid_t get_thread_id(void) { -+#if defined(__FreeBSD__) -+ return pthread_getthreadid_np(); -+#else - return syscall(SYS_gettid); -+#endif - } + INLINE char *bool_to_string(bool flag) { + return (flag ? "true" : "false"); |