[vlc-commits] chromecast: fix pause command never sent

Thomas Guillem git at videolan.org
Mon Feb 5 13:54:24 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb  5 13:52:59 2018 +0100| [1ed02dc368bf5e143349a3f23146b0203d0f4da4] | committer: Thomas Guillem

chromecast: fix pause command never sent

Regression from d28be9f17aeeb86cac0f5b3d99d6fd39c6665d6f

(cherry picked from commit 0171ebada4f93ecc97e142ac54e55f32e0306700)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 0746604d0f..aecdc8e353 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -817,14 +817,14 @@ void intf_sys_t::setPauseState(bool paused)
     vlc_mutex_locker locker( &m_lock );
     if ( !paused )
     {
-        if ( m_mediaSessionId == 0 )
+        if ( m_mediaSessionId != 0 )
         {
             m_communication.msgPlayerPlay( m_appTransportId, m_mediaSessionId );
         }
     }
     else
     {
-        if ( m_mediaSessionId == 0 && m_state != Paused )
+        if ( m_mediaSessionId != 0 && m_state != Paused )
         {
             m_communication.msgPlayerPause( m_appTransportId, m_mediaSessionId );
         }



More information about the vlc-commits mailing list