Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4543c9c8
Commit
4543c9c8
authored
Aug 26, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: standardpanel: fix potential null dereference
parent
67a96ef7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+6
-3
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
4543c9c8
...
...
@@ -786,10 +786,13 @@ void StandardPLPanel::activate( const QModelIndex &index )
{
playlist_Lock
(
THEPL
);
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
THEPL
,
model
->
itemId
(
index
,
PLAYLIST_ID
)
);
if
(
p_item
)
{
p_item
->
i_flags
|=
PLAYLIST_SUBITEM_STOP_FLAG
;
lastActivatedPLItemId
=
p_item
->
i_id
;
}
playlist_Unlock
(
THEPL
);
if
(
index
.
isValid
()
)
if
(
p_item
&&
index
.
isValid
()
)
model
->
activateItem
(
index
);
}
}
...
...
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