]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
iptv: add missing lock to the iptv_http_kick_cb, fixes #5415, issue #5353
authorJaroslav Kysela <perex@perex.cz>
Tue, 11 Dec 2018 08:23:22 +0000 (09:23 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 11 Dec 2018 08:24:15 +0000 (09:24 +0100)
src/input/mpegts/iptv/iptv_http.c
src/input/mpegts/mpegts_input.c

index 9ad78b60180addd15ba9f401789442003dbb4fc3..f31ccd7c98c640c998aa14f8472c58b9f5001fbc 100644 (file)
@@ -198,7 +198,9 @@ iptv_http_kick_cb( void *aux )
     if (!hp->started) {
       iptv_input_mux_started(hp->mi, im);
     } else {
+      tvh_mutex_lock(&iptv_lock);
       iptv_input_recv_flush(im);
+      tvh_mutex_unlock(&iptv_lock);
     }
     hp->started = 1;
   }
index 268a5065fbcb11d6e37b007e37ca171ccf5a3d59..65952aad60c045fbc2c2fe0de18756b01c4c258a 100644 (file)
@@ -1,4 +1,4 @@
-  /*
+/*
  *  Tvheadend - MPEGTS input source
  *  Copyright (C) 2013 Adam Sutton
  *