[vlc-commits] chromecast: initialize i_requestId

Adrien Maglo git at videolan.org
Fri Oct 24 15:51:56 CEST 2014


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Oct 22 12:07:08 2014 +0200| [2df1cc66bba4996f3792b716f1fc090dc2fb1533] | committer: Jean-Baptiste Kempf

chromecast: initialize i_requestId

This fix the random start fail of the module.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 68931ca..b9247d5 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -73,7 +73,8 @@ enum
 struct sout_stream_sys_t
 {
     sout_stream_sys_t()
-        : p_tls(NULL), i_status(CHROMECAST_DISCONNECTED), p_out(NULL)
+        : p_tls(NULL), i_requestId(0),
+          i_status(CHROMECAST_DISCONNECTED), p_out(NULL)
     {
         atomic_init(&ab_error, false);
     }



More information about the vlc-commits mailing list