mirror of https://code.videolan.org/videolan/vlc
media_library: use double for the position
This commit is contained in:
parent
c0de748a3b
commit
92450571e1
|
@ -202,7 +202,7 @@ typedef struct vlc_ml_media_t
|
|||
/* Duration in milliseconds */
|
||||
int64_t i_duration;
|
||||
uint32_t i_playcount;
|
||||
float f_progress;
|
||||
double f_progress;
|
||||
time_t i_last_played_date;
|
||||
char* psz_title;
|
||||
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,
|
||||
uint32_t i_desired_width,
|
||||
uint32_t i_desired_height,
|
||||
float position )
|
||||
double position )
|
||||
{
|
||||
return vlc_ml_control( p_ml, VLC_ML_MEDIA_GENERATE_THUMBNAIL, i_media_id,
|
||||
size_type, i_desired_width, i_desired_height, position );
|
||||
|
|
|
@ -165,7 +165,7 @@ QString MLPlaylistMedia::getMRLDisplay() const
|
|||
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
float MLPlaylistMedia::getProgress() const
|
||||
double MLPlaylistMedia::getProgress() const
|
||||
{
|
||||
return m_progress;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ public: // Interface
|
|||
QString getMRL () const;
|
||||
QString getMRLDisplay() const;
|
||||
|
||||
float getProgress () const;
|
||||
double getProgress () const;
|
||||
QString getProgressTime() const;
|
||||
|
||||
unsigned int getPlayCount() const;
|
||||
|
@ -87,7 +87,7 @@ private: // Properties
|
|||
|
||||
QUrl m_mrl;
|
||||
|
||||
float m_progress;
|
||||
double m_progress;
|
||||
QString m_progressTime;
|
||||
|
||||
unsigned int m_playCount;
|
||||
|
|
Loading…
Reference in New Issue