[vlc-commits] medialibrary: fix vlc_tick_t set on a value that should be in milliseconds

Steve Lhomme git at videolan.org
Fri Oct 19 11:14:58 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 19 11:10:03 2018 +0200| [f42c9ff00f9efdaa6181d2f835ca5cc9be3f7b10] | committer: Steve Lhomme

medialibrary: fix vlc_tick_t set on a value that should be in milliseconds

At least that's what the doc of setDuration() claims.

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

 modules/misc/medialibrary/MetadataExtractor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/misc/medialibrary/MetadataExtractor.cpp b/modules/misc/medialibrary/MetadataExtractor.cpp
index c7a5edf95b..7440bd4db3 100644
--- a/modules/misc/medialibrary/MetadataExtractor.cpp
+++ b/modules/misc/medialibrary/MetadataExtractor.cpp
@@ -89,7 +89,7 @@ void MetadataExtractor::populateItem( medialibrary::parser::IItem& item, input_i
                 emptyStringWrapper( vlc_meta_Get( inputItem->p_meta, pair.second ) ) );
     }
 
-    item.setDuration( inputItem->i_duration );
+    item.setDuration( MS_FROM_VLC_TICK(inputItem->i_duration) );
 
     for ( auto i = 0; i < inputItem->i_es; ++i )
     {



More information about the vlc-commits mailing list