[vlc-commits] mkv: minor clean-up + c-style casts => c++ casts
Filip Roséen
git at videolan.org
Wed Mar 9 12:59:43 CET 2016
vlc | branch: master | Filip Roséen <filip at videolabs.io> | Wed Mar 9 12:50:09 2016 +0100| [e41757af234272dc0c534ab0d28529f9cbf214b5] | committer: Jean-Baptiste Kempf
mkv: minor clean-up + 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=e41757af234272dc0c534ab0d28529f9cbf214b5
---
modules/demux/mkv/matroska_segment_parse.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 17c8ad3..16e93d6 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -796,11 +796,10 @@ void matroska_segment_c::ParseInfo( KaxInfo *info )
}
E_CASE( KaxDateUTC, date )
{
- time_t i_date;
struct tm tmres;
char buffer[25];
+ time_t i_date = date.GetEpochDate();
- i_date = date.GetEpochDate();
if( gmtime_r( &i_date, &tmres ) &&
strftime( buffer, sizeof(buffer), "%a %b %d %H:%M:%S %Y",
&tmres ) )
@@ -832,14 +831,14 @@ void matroska_segment_c::ParseInfo( KaxInfo *info )
E_CASE( KaxChapterTranslateEditionUID, uid )
{
chapter_translation_c *p_translate = new chapter_translation_c();
- p_translate->editions.push_back( uint64( uid ) );
+ p_translate->editions.push_back( static_cast<uint64>( uid ) );
vars.obj->translations.push_back( p_translate );
}
E_CASE( KaxChapterTranslateCodec, codec_id )
{
chapter_translation_c *p_translate = new chapter_translation_c();
- p_translate->codec_id = uint32( codec_id );
+ p_translate->codec_id = static_cast<uint32>( codec_id );
vars.obj->translations.push_back( p_translate );
}
More information about the vlc-commits
mailing list