Skip to content
Snippets Groups Projects
Commit f80bc370 authored by Pierre Lamot's avatar Pierre Lamot
Browse files

qt: copy audio and video count in MLFolderItem

parent 452c0aeb
No related branches found
No related tags found
1 merge request!2056qt: fix wrong number of media displayed in video folder group view
......@@ -29,7 +29,10 @@ MLFolder::MLFolder(const vlc_ml_folder_t * data)
, m_title(data->psz_name)
, m_mrl(data->psz_mrl)
, m_duration(0) // FIXME: We should have a duration field in vlc_ml_folder_t.
, m_count(data->i_nb_media) {}
, m_count(data->i_nb_media)
, m_audioCount(data->i_nb_audio)
, m_videoCount(data->i_nb_video)
{}
// Interface
......@@ -62,3 +65,13 @@ unsigned int MLFolder::getCount() const
{
return m_count;
}
unsigned int MLFolder::getAudioCount() const
{
return m_audioCount;
}
unsigned int MLFolder::getVideoCount() const
{
return m_videoCount;
}
......@@ -41,6 +41,10 @@ public: // Interface
unsigned int getCount() const;
unsigned int getAudioCount() const;
unsigned int getVideoCount() const;
private:
bool m_present;
bool m_banned;
......@@ -52,6 +56,8 @@ private:
int64_t m_duration;
unsigned int m_count;
unsigned int m_audioCount;
unsigned int m_videoCount;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment