vlc | branch: master | Steve Lhomme <[email protected]> | 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;
                 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to