[vlc-commits] sgimb: convert the duration from microseconds explicitly with VLC_TICK_FROM_US()
Steve Lhomme
git at videolan.org
Tue Jul 3 15:30:52 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 3 15:14:36 2018 +0200| [b23375dd281ace4f64c45c2d54b0113931ebb1fc] | committer: Steve Lhomme
sgimb: convert the duration from microseconds explicitly with VLC_TICK_FROM_US()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b23375dd281ace4f64c45c2d54b0113931ebb1fc
---
modules/demux/playlist/sgimb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/playlist/sgimb.c b/modules/demux/playlist/sgimb.c
index 06a1ef1d4c..bb85bbdcb2 100644
--- a/modules/demux/playlist/sgimb.c
+++ b/modules/demux/playlist/sgimb.c
@@ -294,7 +294,7 @@ static int ParseLine ( stream_t *p_demux, char *psz_line )
else if( !strncasecmp( psz_bol, "sgiDuration=", sizeof("sgiDuration=") - 1 ) )
{
psz_bol += sizeof("sgiDuration=") - 1;
- p_sys->i_duration = (vlc_tick_t) strtol( psz_bol, NULL, 0 );
+ p_sys->i_duration = VLC_TICK_FROM_US( strtol( psz_bol, NULL, 0 ) );
}
else if( !strncasecmp( psz_bol, "sgiRtspPort=", sizeof("sgiRtspPort=") - 1 ) )
{
More information about the vlc-commits
mailing list