aboutsummaryrefslogtreecommitdiffstats
path: root/main/zoneminder/0001-use-pthread_join-instead-of-pthread_tryjoin_np.patch
blob: b7cbb4c3c2f998c4ac024d676a1351504bf04576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 5779b2e20fe7d5e43a5a38ab289e45fc0ffc9545 Mon Sep 17 00:00:00 2001
From: Sune1337 <kristoffer.lindahl@gmail.com>
Date: Wed, 8 Apr 2015 22:15:54 +0200
Subject: [PATCH] * use pthread_join instead of pthread_tryjoin_np

---
 src/zm_ffmpeg_camera.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/zm_ffmpeg_camera.cpp b/src/zm_ffmpeg_camera.cpp
index 9a4ea5f..5ae1e4a 100644
--- a/src/zm_ffmpeg_camera.cpp
+++ b/src/zm_ffmpeg_camera.cpp
@@ -120,7 +120,7 @@ int FfmpegCamera::Capture( Image &image )
         void *retval = 0;
         int ret;
         
-        ret = pthread_tryjoin_np(mReopenThread, &retval);
+        ret = pthread_join(mReopenThread, &retval);
         if (ret != 0){
             Error("Could not join reopen thread.");
         }
-- 
2.1.0