Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
776639f8
Commit
776639f8
authored
Sep 27, 2008
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Fix compilation
Seems to works but i would appreciate a review by a playlist guru
parent
e0197392
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+5
-4
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
776639f8
...
...
@@ -585,6 +585,7 @@ void PLModel::rebuild()
void
PLModel
::
rebuild
(
playlist_item_t
*
p_root
)
{
playlist_item_t
*
p_item
;
/* Remove callbacks before locking to avoid deadlocks */
delCallbacks
();
/* Invalidate cache */
...
...
@@ -611,13 +612,13 @@ void PLModel::rebuild( playlist_item_t *p_root )
assert
(
rootItem
);
/* Recreate from root */
UpdateNodeChildren
(
rootItem
);
if
(
p_
playlist
->
status
.
p_item
)
if
(
p_
item
=
playlist_CurrentPlayingItem
(
p_playlist
)
)
{
PLItem
*
currentItem
=
FindByInput
(
rootItem
,
p_playlist
->
status
.
p_item
->
p_input
->
i_id
);
p_item
->
p_input
->
i_id
);
if
(
currentItem
)
{
UpdateTreeItem
(
p_
playlist
->
status
.
p_
item
,
currentItem
,
UpdateTreeItem
(
p_item
,
currentItem
,
true
,
false
);
}
}
...
...
@@ -667,7 +668,7 @@ void PLModel::UpdateTreeItem( playlist_item_t *p_item, PLItem *item,
if
(
!
force
&&
i_depth
==
DEPTH_SEL
&&
p_item
->
p_parent
&&
p_item
->
p_parent
->
i_id
!=
rootItem
->
i_id
)
return
;
item
->
update
(
p_item
,
p_item
==
p
_playlist
->
status
.
p_item
);
item
->
update
(
p_item
,
p_item
==
p
laylist_CurrentPlayingItem
(
p_playlist
)
);
if
(
signal
)
emit
dataChanged
(
index
(
item
,
0
)
,
index
(
item
,
1
)
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment