[vlc-devel] commit: Kill further I64C ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 10 18:17:48 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sat May 10 19:19:06 2008 +0300| [d9752f14c50c932c07c29d9df4ed48b2f3d6d376]

Kill further I64C

I think I'm going to become stricter about NOT merging out-of-sync
patches

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

 modules/codec/kate.c                               |    2 +-
 .../wxwidgets/dialogs/vlm/vlm_slider_manager.cpp   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index 876ed37..a399917 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -564,7 +564,7 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, kate_packet *p_kp, block_t
 
     p_spu->p_region->psz_text = strdup(ev->text); /* no leak, this actually gets killed by the core */
     p_spu->i_start = p_block->i_pts;
-    p_spu->i_stop = p_block->i_pts + I64C(1000000)*ev->duration*p_sys->ki.gps_denominator/p_sys->ki.gps_numerator;
+    p_spu->i_stop = p_block->i_pts + INT64_C(1000000)*ev->duration*p_sys->ki.gps_denominator/p_sys->ki.gps_numerator;
     p_spu->b_ephemer = (p_block->i_length == 0);
     p_spu->b_absolute = false;
 
diff --git a/modules/gui/wxwidgets/dialogs/vlm/vlm_slider_manager.cpp b/modules/gui/wxwidgets/dialogs/vlm/vlm_slider_manager.cpp
index 5f56064..690765e 100644
--- a/modules/gui/wxwidgets/dialogs/vlm/vlm_slider_manager.cpp
+++ b/modules/gui/wxwidgets/dialogs/vlm/vlm_slider_manager.cpp
@@ -204,10 +204,10 @@ void VLMSliderManager::ProcessUpdate( wxScrollEvent &event )
             char psz_time[ MSTRTIME_MAX_SIZE ], psz_total[ MSTRTIME_MAX_SIZE ];
             mtime_t i_seconds;
 
-            i_seconds = var_GetTime( p_input, "length" ) / I64C(1000000 );
+            i_seconds = var_GetTime( p_input, "length" ) / INT64_C( 1000000 );
             secstotimestr( psz_total, i_seconds );
 
-            i_seconds = var_GetTime( p_input, "time" ) /   I64C(1000000 );
+            i_seconds = var_GetTime( p_input, "time" ) / INT_64C( 1000000 );
             secstotimestr( psz_time, i_seconds );
 
             time_string = wxU(psz_time) + wxString(wxT(" / ") ) +wxU(psz_total) ;




More information about the vlc-devel mailing list