Commit df129d18 authored by Steve Lhomme's avatar Steve Lhomme

libvlc: use US_FROM_VLC_TICK for values returned in microseconds

parent 8b87b182
......@@ -238,7 +238,7 @@ libvlc_module_description_t *libvlc_video_filter_list_get( libvlc_instance_t *p_
int64_t libvlc_clock(void)
{
return vlc_tick_now();
return US_FROM_VLC_TICK(vlc_tick_now());
}
const char vlc_module_name[] = "libvlc";
......@@ -660,7 +660,7 @@ int libvlc_vlm_get_media_instance_time( libvlc_instance_t *p_instance,
p_mi = libvlc_vlm_get_media_instance( p_instance, psz_name, i_instance );
if( p_mi )
{
result = p_mi->i_time;
result = US_FROM_VLC_TICK(p_mi->i_time);
vlm_media_instance_Delete( p_mi );
}
return result;
......@@ -676,7 +676,7 @@ int libvlc_vlm_get_media_instance_length( libvlc_instance_t *p_instance,
p_mi = libvlc_vlm_get_media_instance( p_instance, psz_name, i_instance );
if( p_mi )
{
result = p_mi->i_length;
result = US_FROM_VLC_TICK(p_mi->i_length);
vlm_media_instance_Delete( p_mi );
}
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment