[vlc-commits] chromecast: delay stop request

Thomas Guillem git at videolan.org
Thu Jan 25 18:33:31 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 25 18:21:51 2018 +0100| [13095327c671b6038971c23f76178beabed35f5a] | committer: Thomas Guillem

chromecast: delay stop request

Do it only when there is no streams from UpdateOutput.

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

 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 182e0ee600..9496c4eae7 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