diff options
author | Thompson, Walker Riggs <walker.thompson@urz.uni-heidelberg.de> | 2025-08-25 14:29:24 +0300 |
---|---|---|
committer | Vladimir Druzenko <vvd@FreeBSD.org> | 2025-08-25 14:33:01 +0300 |
commit | c1e1ca750be9ef9a224ef1ca3a2675d484a04f23 (patch) | |
tree | 27622a43eeda2aebaeea8d78e7de71d2af2c9dfe /multimedia/guvcview/files/patch-guvcview_guvcview.c | |
parent | emulators/dosbox-x: Fix build with FFmpeg 8 (diff) |
multimedia/guvcview: New port: Webcam viewer/recorder
Guvcview is an application for capturing and viewing video from
devices supported by the linux kernel video4linux2 interface.
https://guvcview.sourceforge.net/
PR: 288329
Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
Diffstat (limited to 'multimedia/guvcview/files/patch-guvcview_guvcview.c')
-rw-r--r-- | multimedia/guvcview/files/patch-guvcview_guvcview.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/multimedia/guvcview/files/patch-guvcview_guvcview.c b/multimedia/guvcview/files/patch-guvcview_guvcview.c new file mode 100644 index 000000000000..6a77e654b7ae --- /dev/null +++ b/multimedia/guvcview/files/patch-guvcview_guvcview.c @@ -0,0 +1,31 @@ +--- guvcview/guvcview.c.orig 2024-11-02 13:15:33 UTC ++++ guvcview/guvcview.c +@@ -28,6 +28,7 @@ + #include <sys/resource.h> + #include <sys/stat.h> + #include <sys/syscall.h> ++#include <pthread_np.h> + #include <unistd.h> + + #include "config.h" +@@ -226,8 +227,8 @@ int main(int argc, char *argv[]) { + #endif + + if (debug_level > 1) +- printf("GUVCVIEW: main thread (tid: %u)\n", +- (unsigned int)syscall(SYS_gettid)); ++ printf("GUVCVIEW: main thread (tid: %d)\n", ++ pthread_getthreadid_np()); + + /*set the v4l2 core verbosity*/ + v4l2core_set_verbosity(debug_level); +@@ -393,8 +394,7 @@ int main(int argc, char *argv[]) { + gui_error("Guvcview error", "could not start the video capture thread", + 1); + } else if (debug_level > 2) +- printf("GUVCVIEW: created capture thread with tid: %u\n", +- (unsigned int)capture_thread); ++ printf("GUVCVIEW: created capture thread\n"); + + struct timespec now; + clock_gettime(CLOCK_REALTIME, &now); |