[vlc-commits] access/live555: make TimeoutPrevention thread interruptable

Filip Roséen git at videolan.org
Wed Aug 3 10:51:43 CEST 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Aug  2 21:12:15 2016 +0200| [e47d8ad841509b91734e5a19dec881265b25c93c] | committer: Jean-Baptiste Kempf

access/live555: make TimeoutPrevention thread interruptable

This replaces the usage of "msleep" with "vlc_msleep_i11e"
which is guaranteed to be interruptable on every platform.

Ref #17064

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e47d8ad841509b91734e5a19dec881265b25c93c
---

 modules/access/live555.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 12c505a..59cf572 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -2153,7 +2153,7 @@ static void* TimeoutPrevention( void *p_data )
         }
         p_sys->b_timeout_call = !p_timeout->b_handle_keep_alive;
 
-        msleep (((int64_t)p_sys->i_timeout - 2) * CLOCK_FREQ);
+        vlc_msleep_i11e( ((int64_t)p_sys->i_timeout - 2) * CLOCK_FREQ );
     }
     vlc_assert_unreachable(); /* dead code */
 }



More information about the vlc-commits mailing list