[vlc-commits] commit: vod_rtsp: use CLOCK_FREQ (Pierre Ynard )

git at videolan.org git at videolan.org
Sun May 23 21:36:33 CEST 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun May 23 21:36:13 2010 +0200| [8528c53a5af4a20b74a7183b5ed8d861e4ac1385] | committer: Pierre Ynard 

vod_rtsp: use CLOCK_FREQ

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

 modules/misc/rtsp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 87bbf84..91afc26 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -1113,7 +1113,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
                 {
                     double f_pos = ParseNPT (psz_position + 4);
                     msg_Dbg( p_vod, "seeking request: %s", psz_position );
-                    f_pos /= ((double)(p_media->i_length))/1000 /1000 / 100;
+                    f_pos /= ((double)(p_media->i_length)) / CLOCK_FREQ / 100;
                     CommandPush( p_vod, RTSP_CMD_TYPE_SEEK, p_media,
                                  psz_session, f_pos, NULL );
                 }
@@ -1447,7 +1447,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
             {
                 double f_pos = ParseNPT (psz_position + 4);
                 msg_Dbg( p_vod, "seeking request: %s", psz_position );
-                f_pos /= ((double)(p_media->i_length))/1000 /1000 / 100;
+                f_pos /= ((double)(p_media->i_length)) / CLOCK_FREQ / 100;
                 CommandPush( p_vod, RTSP_CMD_TYPE_SEEK, p_media,
                              psz_session, f_pos, NULL );
             }



More information about the vlc-commits mailing list