Skip to content
Snippets Groups Projects
Commit 452c0aeb authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

medialibrary: folder: Add nb_audio/nb_video counters

Refs #27054
parent f6a6b9b9
No related branches found
No related tags found
1 merge request!2055medialibrary: folder: Add nb_audio/nb_video counters
Pipeline #229909 passed with stage
in 15 minutes and 49 seconds
......@@ -362,6 +362,8 @@ typedef struct vlc_ml_folder_t
char* psz_name; /**< The folder's name */
char* psz_mrl; /**< The folder's MRL. Will be NULL if b_present is false */
unsigned int i_nb_media; /**< The media count */
unsigned int i_nb_video; /**< The number of video for this folder */
unsigned int i_nb_audio; /**< The number of audio for this volder */
bool b_present; /**< The folder's presence state */
bool b_banned; /**< Will be true if the user required this folder to be excluded */
} vlc_ml_folder_t;
......
......@@ -480,6 +480,8 @@ bool Convert( const medialibrary::IFolder* input, vlc_ml_folder_t& output )
output.i_id = input->id();
output.i_nb_media = input->nbMedia();
output.i_nb_audio = input->nbAudio();
output.i_nb_video = input->nbVideo();
output.b_banned = input->isBanned();
......
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