[vlc-devel] [PATCH 09/20] mkv: virtual_segment.cpp c-style casts => c++ casts

Filip Roséen filip at videolabs.io
Fri Mar 4 17:04:07 CET 2016


---
 modules/demux/mkv/virtual_segment.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index a66003c..efb74a1 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -575,8 +575,8 @@ int virtual_edition_c::PublishChapters( input_title_t & title, int & i_user_chap
         sk->psz_name = strdup( p_edition->psz_name.c_str() );
 
         title.i_seekpoint++;
-        title.seekpoint = (seekpoint_t**)xrealloc( title.seekpoint,
-                             title.i_seekpoint * sizeof( seekpoint_t* ) );
+        title.seekpoint = static_cast<seekpoint_t**>( xrealloc( title.seekpoint,
+                             title.i_seekpoint * sizeof( seekpoint_t* ) ) );
         title.seekpoint[title.i_seekpoint - 1] = sk;
         i_level++;
 
-- 
2.7.2



More information about the vlc-devel mailing list