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

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


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb  5 13:52:59 2018 +0100| [0171ebada4f93ecc97e142ac54e55f32e0306700] | committer: Thomas Guillem

chromecast: fix pause command never sent

Regression from d28be9f17aeeb86cac0f5b3d99d6fd39c6665d6f

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

 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