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
65211483
Commit
65211483
authored
Sep 14, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: fix segfault when exiting after a service discovery has been activated
parent
eca521d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+11
-3
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
65211483
...
...
@@ -526,6 +526,7 @@ PLItem *PLModel::findByInput( PLItem *root, int i_id )
PLItem
*
PLModel
::
findInner
(
PLItem
*
root
,
int
i_id
,
bool
b_input
)
{
if
(
!
root
)
return
NULL
;
if
(
(
!
b_input
&&
i_cached_id
==
i_id
)
||
(
b_input
&&
i_cached_input_id
==
i_id
)
)
{
...
...
@@ -755,14 +756,21 @@ void PLModel::insertChildren( PLItem *node, QList<PLItem*>& items, int i_pos )
void
PLModel
::
removeItem
(
PLItem
*
item
)
{
if
(
!
item
)
return
;
if
(
currentItem
==
item
)
{
currentItem
=
NULL
;
emit
currentChanged
(
QModelIndex
()
);
}
PLItem
*
parent
=
item
->
parentItem
;
assert
(
parent
);
parent
->
removeChild
(
item
);
if
(
item
->
parentItem
)
item
->
parentItem
->
removeChild
(
item
);
else
delete
item
;
if
(
item
==
rootItem
)
{
rootItem
=
NULL
;
reset
();
}
}
/* This function must be entered WITH the playlist lock */
...
...
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