[vlc-devel] commit: Fix incorrect printf argument ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed May 7 21:25:51 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed May  7 22:26:11 2008 +0300| [3c74d129dd3d8a4bd11a4696f13af83103fe20fb]

Fix incorrect printf argument

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

 src/control/mediacontrol_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/mediacontrol_core.c b/src/control/mediacontrol_core.c
index eff3ef6..59527aa 100644
--- a/src/control/mediacontrol_core.c
+++ b/src/control/mediacontrol_core.c
@@ -222,7 +222,7 @@ mediacontrol_start( mediacontrol_Instance *self,
             /* A start position was specified. Add it to media options */
             psz_from = ( char * )malloc( 20 * sizeof( char ) );
             i_from = private_mediacontrol_position2microsecond( self->p_media_player, a_position ) / 1000000;
-            snprintf( psz_from, 20, "start-time=%ld", i_from );
+            snprintf( psz_from, 20, "start-time=%"PRId64, i_from );
             libvlc_media_add_option( p_media, psz_from, &ex );
             HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
         }




More information about the vlc-devel mailing list