1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-24 20:48:52 +02:00

media_library: use double for the position

This commit is contained in:
Thomas Guillem 2022-08-03 13:54:59 +02:00 committed by Jean-Baptiste Kempf
parent c0de748a3b
commit 92450571e1
3 changed files with 5 additions and 5 deletions

View File

@ -202,7 +202,7 @@ typedef struct vlc_ml_media_t
/* Duration in milliseconds */ /* Duration in milliseconds */
int64_t i_duration; int64_t i_duration;
uint32_t i_playcount; uint32_t i_playcount;
float f_progress; double f_progress;
time_t i_last_played_date; time_t i_last_played_date;
char* psz_title; char* psz_title;
char* psz_filename; char* psz_filename;
@ -1064,7 +1064,7 @@ static inline int vlc_ml_media_generate_thumbnail( vlc_medialibrary_t* p_ml, int
vlc_ml_thumbnail_size_t size_type, vlc_ml_thumbnail_size_t size_type,
uint32_t i_desired_width, uint32_t i_desired_width,
uint32_t i_desired_height, uint32_t i_desired_height,
float position ) double position )
{ {
return vlc_ml_control( p_ml, VLC_ML_MEDIA_GENERATE_THUMBNAIL, i_media_id, return vlc_ml_control( p_ml, VLC_ML_MEDIA_GENERATE_THUMBNAIL, i_media_id,
size_type, i_desired_width, i_desired_height, position ); size_type, i_desired_width, i_desired_height, position );

View File

@ -165,7 +165,7 @@ QString MLPlaylistMedia::getMRLDisplay() const
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
float MLPlaylistMedia::getProgress() const double MLPlaylistMedia::getProgress() const
{ {
return m_progress; return m_progress;
} }

View File

@ -57,7 +57,7 @@ public: // Interface
QString getMRL () const; QString getMRL () const;
QString getMRLDisplay() const; QString getMRLDisplay() const;
float getProgress () const; double getProgress () const;
QString getProgressTime() const; QString getProgressTime() const;
unsigned int getPlayCount() const; unsigned int getPlayCount() const;
@ -87,7 +87,7 @@ private: // Properties
QUrl m_mrl; QUrl m_mrl;
float m_progress; double m_progress;
QString m_progressTime; QString m_progressTime;
unsigned int m_playCount; unsigned int m_playCount;