[vlc-commits] sout/chromecast: Open: prefer static_cast

Filip Roséen git at videolan.org
Thu May 18 21:08:13 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:02:17 2017 +0200| [ba30a4e9bf3370f091e7d73f56c2d2a7f43495c7] | committer: Jean-Baptiste Kempf

sout/chromecast: Open: prefer static_cast

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

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

 modules/stream_out/chromecast/chromecast_demux.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_demux.cpp b/modules/stream_out/chromecast/chromecast_demux.cpp
index 6a939f443c..12dbdb1bf3 100644
--- a/modules/stream_out/chromecast/chromecast_demux.cpp
+++ b/modules/stream_out/chromecast/chromecast_demux.cpp
@@ -259,7 +259,7 @@ static int Control( demux_t *p_demux_filter, int i_query, va_list args)
 int Open(vlc_object_t *p_this)
 {
     demux_t *p_demux = reinterpret_cast<demux_t*>(p_this);
-    chromecast_common *p_renderer = reinterpret_cast<chromecast_common *>(
+    chromecast_common *p_renderer = static_cast<chromecast_common *>(
                 var_InheritAddress( p_demux, CC_SHARED_VAR_NAME ) );
     if ( p_renderer == NULL )
     {



More information about the vlc-commits mailing list