mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
Have (and document) libvlc_media_get_duration return ms
in order to be consistent with other libvlc methods (libvlc_media_player_get_length, get_time, ...)
This commit is contained in:
parent
53605c9a7b
commit
bb830b765e
@ -263,7 +263,7 @@ VLC_PUBLIC_API libvlc_event_manager_t *
|
||||
libvlc_exception_t * p_e );
|
||||
|
||||
/**
|
||||
* Get duration of media descriptor object item.
|
||||
* Get duration (in ms) of media descriptor object item.
|
||||
*
|
||||
* \param p_md media descriptor object
|
||||
* \param p_e an initialized exception object
|
||||
|
@ -535,7 +535,7 @@ libvlc_media_event_manager( libvlc_media_t * p_md,
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* Get duration of media object.
|
||||
* Get duration of media object (in ms)
|
||||
**************************************************************************/
|
||||
int64_t
|
||||
libvlc_media_get_duration( libvlc_media_t * p_md,
|
||||
@ -549,7 +549,7 @@ libvlc_media_get_duration( libvlc_media_t * p_md,
|
||||
return -1;
|
||||
}
|
||||
|
||||
return input_item_GetDuration( p_md->p_input_item );
|
||||
return input_item_GetDuration( p_md->p_input_item ) / 1000;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user