[vlc-commits] chromecast: start requestId at 1

Thomas Guillem git at videolan.org
Fri Feb 23 08:29:26 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb 20 16:48:56 2018 +0100| [88a6b5eed068456f13ba2e0850bb09eaf2cee9f0] | committer: Thomas Guillem

chromecast: start requestId at 1

Since 0 is reserved when the chromecast send spontaneous messages.

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

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

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

diff --git a/modules/stream_out/chromecast/chromecast_communication.cpp b/modules/stream_out/chromecast/chromecast_communication.cpp
index b4d16c7efc..b0f7997950 100644
--- a/modules/stream_out/chromecast/chromecast_communication.cpp
+++ b/modules/stream_out/chromecast/chromecast_communication.cpp
@@ -36,8 +36,8 @@ ChromecastCommunication::ChromecastCommunication( vlc_object_t* p_module, const
     : m_module( p_module )
     , m_creds( NULL )
     , m_tls( NULL )
-    , m_receiver_requestId( 0 )
-    , m_requestId( 0 )
+    , m_receiver_requestId( 1 )
+    , m_requestId( 1 )
 {
     if (devicePort == 0)
         devicePort = CHROMECAST_CONTROL_PORT;



More information about the vlc-commits mailing list