[vlc-commits] input: use secf function to read the bookmark time

Steve Lhomme git at videolan.org
Tue Sep 18 11:01:49 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 18:40:20 2018 +0200| [0b2281028e1b48be0277428dfc574fef1b404815] | committer: Steve Lhomme

input: use secf function to read the bookmark time

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

 src/input/input.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 70e55276d0..e99c44a611 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -478,8 +478,7 @@ static input_thread_t *Create( vlc_object_t *p_parent,
                      }
                      else if( !strncmp( psz_start, "time=", 5 ) )
                      {
-                         p_seekpoint->i_time_offset = atof(psz_start + 5) *
-                                                        CLOCK_FREQ;
+                         p_seekpoint->i_time_offset = vlc_tick_from_sec(atof(psz_start + 5));
                      }
                      psz_start = psz_end + 1;
                 }



More information about the vlc-commits mailing list