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
455
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
f80bc370
Commit
f80bc370
authored
2 years ago
by
Pierre Lamot
Browse files
Options
Downloads
Patches
Plain Diff
qt: copy audio and video count in MLFolderItem
parent
452c0aeb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2056
qt: fix wrong number of media displayed in video folder group view
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/gui/qt/medialibrary/mlfolder.cpp
+14
-1
14 additions, 1 deletion
modules/gui/qt/medialibrary/mlfolder.cpp
modules/gui/qt/medialibrary/mlfolder.hpp
+6
-0
6 additions, 0 deletions
modules/gui/qt/medialibrary/mlfolder.hpp
with
20 additions
and
1 deletion
modules/gui/qt/medialibrary/mlfolder.cpp
+
14
−
1
View file @
f80bc370
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
modules/gui/qt/medialibrary/mlfolder.hpp
+
6
−
0
View file @
f80bc370
...
...
@@ -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
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