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
442
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
0622b0c0
Commit
0622b0c0
authored
3 years ago
by
Prince Gupta
Browse files
Options
Downloads
Patches
Plain Diff
qt/MLVideoModel: only reset model if added item is a video
parent
7907c847
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1410
qt/MLVideoModel: don't reset model on media update event
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/medialibrary/mlvideomodel.cpp
+2
-0
2 additions, 0 deletions
modules/gui/qt/medialibrary/mlvideomodel.cpp
with
2 additions
and
0 deletions
modules/gui/qt/medialibrary/mlvideomodel.cpp
+
2
−
0
View file @
0622b0c0
...
...
@@ -152,6 +152,8 @@ void MLVideoModel::onVlcMlEvent(const MLEvent &event)
switch
(
event
.
i_type
)
{
case
VLC_ML_EVENT_MEDIA_ADDED
:
m_need_reset
=
(
event
.
creation
.
media
.
i_type
==
VLC_ML_MEDIA_TYPE_VIDEO
);
break
;
case
VLC_ML_EVENT_MEDIA_DELETED
:
m_need_reset
=
true
;
break
;
...
...
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