diff mbox

[FFmpeg-devel,01/17] publisher.c: Redruce threads to 1 for now to avoid race conditions

Message ID 20180628005117.18902-2-klaxa1337@googlemail.com
State New
Headers show

Commit Message

Stephan Holljes June 28, 2018, 12:51 a.m. UTC
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
---
 publisher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/publisher.c b/publisher.c
index 56d1e24..fc3d804 100644
--- a/publisher.c
+++ b/publisher.c
@@ -101,7 +101,7 @@  void publisher_init(struct PublisherContext **pub, char *stream_name)
         av_log(NULL, AV_LOG_ERROR, "Could not allocate publisher context.\n");
         return;
     }
-    pc->nb_threads = 8;
+    pc->nb_threads = 1;
     pc->stream_name = stream_name;
     pc->current_segment_id = -1;
     pc->shutdown = 0;