[vlc-devel] [PATCH 5/7] sout/chromecast: Open: prefer static_cast

Filip Roséen filip at atch.se
Thu May 18 12:02:17 CEST 2017


---
 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 )
     {
-- 
2.12.2


More information about the vlc-devel mailing list