[vlc-devel] [PATCH 5/6] chromecast: only do the 2s wait hack if the server cannot do pace control

Steve Lhomme robux4 at videolabs.io
Wed Oct 7 15:36:41 CEST 2015


--
for better days to come
---
 modules/stream_out/chromecast/cast.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index de123b1..f97902b 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -313,9 +313,12 @@ static int Open(vlc_object_t *p_this)
     }
     vlc_mutex_unlock(&p_sys->lock);
 
-    /* Even uglier: sleep more to let to the Chromecast initiate the connection
-     * to the http server. */
-    msleep(2 * CLOCK_FREQ);
+    if (p_sys->p_out->pace_nocontrol)
+    {
+        /* Even uglier: sleep more to let to the Chromecast initiate the connection
+         * to the http server. */
+        msleep(2 * CLOCK_FREQ);
+    }
 
     // Set the sout callbacks.
     p_stream->pf_add    = Add;
-- 
2.5.2



More information about the vlc-devel mailing list