Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
452c0aeb by Hugo Beauzée-Luyssen at 2022-06-09T13:58:07+02:00
medialibrary: folder: Add nb_audio/nb_video counters

Refs #27054

- - - - -


2 changed files:

- include/vlc_media_library.h
- modules/misc/medialibrary/entities.cpp


Changes:

=====================================
include/vlc_media_library.h
=====================================
@@ -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;


=====================================
modules/misc/medialibrary/entities.cpp
=====================================
@@ -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();
 



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/452c0aeb778a46973de0244728b120845477734f

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/452c0aeb778a46973de0244728b120845477734f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to