[vlc-commits] mkv: virtual_segment.cpp c-style casts => c++ casts

Filip Roséen git at videolan.org
Sat Mar 5 22:14:46 CET 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Fri Mar  4 17:04:07 2016 +0100| [18021cdbbdeaacb83484b97a26ac5b2097423764] | committer: Jean-Baptiste Kempf

mkv: virtual_segment.cpp c-style casts => c++ casts

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

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

 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++;
 



More information about the vlc-commits mailing list