[vlc-commits] chromecast: delay stop request

Thomas Guillem git at videolan.org
Fri Jan 26 14:27:09 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 25 18:21:51 2018 +0100| [540a40771c5ff95708a525d75fbc7953c36329d5] | committer: Jean-Baptiste Kempf

chromecast: delay stop request

Do it only when there is no streams from UpdateOutput.

(cherry picked from commit 13095327c671b6038971c23f76178beabed35f5a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_out/chromecast/cast.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 46b963b73f..589a82ec58 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -328,8 +328,6 @@ static void Del(sout_stream_t *p_stream, sout_stream_id_sys_t *id)
 
     if ( p_sys->out_streams.empty() )
     {
-        p_sys->p_intf->requestPlayerStop();
-
         sout_StreamChainDelete( p_sys->p_out, NULL );
         p_sys->p_out = NULL;
         p_sys->sout = "";
@@ -474,7 +472,10 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
     }
 
     if (out_streams.empty())
+    {
+        p_intf->requestPlayerStop();
         return true;
+    }
 
     std::stringstream ssout;
     if ( !canRemux )



More information about the vlc-commits mailing list