vlc | branch: master | Steve Lhomme <[email protected]> | Wed Jul 4 10:27:42 2018 +0200| [c598485c1fd7aec6c0e96cc7f8a62d89d7f4634c] | committer: Steve Lhomme
live555: use vlc_tick_from_timeval() for timeval conversion > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c598485c1fd7aec6c0e96cc7f8a62d89d7f4634c --- modules/access/live555.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp index 281687ee1b..21d9a0bc52 100644 --- a/modules/access/live555.cpp +++ b/modules/access/live555.cpp @@ -1932,8 +1932,7 @@ static void StreamRead( void *p_private, unsigned int i_size, //msg_Dbg( p_demux, "pts: %d", pts.tv_sec ); - vlc_tick_t i_pts = vlc_tick_from_sec( pts.tv_sec ) + - VLC_TICK_FROM_US( pts.tv_usec ); + vlc_tick_t i_pts = vlc_tick_from_timeval( &pts ); /* XXX Beurk beurk beurk Avoid having negative value XXX */ i_pts &= INT64_C(0x00ffffffffffffff); @@ -2005,8 +2004,7 @@ static void StreamRead( void *p_private, unsigned int i_size, #if 0 fprintf( stderr, "StreamRead size=%d pts=%lld\n", - i_size, - pts.tv_sec * 1000000LL + pts.tv_usec ); + i_size, vlc_tick_from_timeval( &pts) ); #endif /* grow buffer if it looks like buffer is too small, but don't eat _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
