Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
444
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
452c0aeb
Commit
452c0aeb
authored
2 years ago
by
Hugo Beauzée-Luyssen
Browse files
Options
Downloads
Patches
Plain Diff
medialibrary: folder: Add nb_audio/nb_video counters
Refs
#27054
parent
f6a6b9b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2055
medialibrary: folder: Add nb_audio/nb_video counters
Pipeline
#229909
passed with stage
in 15 minutes and 49 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/vlc_media_library.h
+2
-0
2 additions, 0 deletions
include/vlc_media_library.h
modules/misc/medialibrary/entities.cpp
+2
-0
2 additions, 0 deletions
modules/misc/medialibrary/entities.cpp
with
4 additions
and
0 deletions
include/vlc_media_library.h
+
2
−
0
View file @
452c0aeb
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
modules/misc/medialibrary/entities.cpp
+
2
−
0
View file @
452c0aeb
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment