Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7c52736e
Commit
7c52736e
authored
Nov 15, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wxWidgets crash
parent
1bef5113
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+2
-1
src/playlist/playlist.c
src/playlist/playlist.c
+7
-0
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
7c52736e
...
...
@@ -1183,7 +1183,8 @@ void Playlist::OnActivateItem( wxTreeEvent& event )
else
{
p_node
=
p_wxitem
->
p_item
;
if
(
p_wxitem
->
p_item
->
i_children
>
0
)
if
(
p_wxitem
->
p_item
->
i_children
>
0
&&
p_wxitem
->
p_item
->
pp_children
[
0
]
->
i_children
==
-
1
)
{
p_item
=
p_wxitem
->
p_item
->
pp_children
[
0
];
}
...
...
src/playlist/playlist.c
View file @
7c52736e
...
...
@@ -37,6 +37,7 @@
#define TITLE_ALL N_( "All items, unsorted" )
#define PLAYLIST_PROFILE 1
#undef PLAYLIST_DEBUG
/*****************************************************************************
* Local prototypes
...
...
@@ -729,6 +730,9 @@ static playlist_item_t * NextItem( playlist_t *p_playlist )
/* We are not playing from a view */
if
(
p_playlist
->
request
.
i_view
==
-
1
)
{
#ifdef PLAYLIST_DEBUG
msg_Dbg
(
p_playlist
,
"non-view mode request"
);
#endif
/* Directly select the item, just like now */
i_skip
=
p_playlist
->
request
.
i_skip
;
i_goto
=
p_playlist
->
request
.
i_goto
;
...
...
@@ -755,6 +759,9 @@ static playlist_item_t * NextItem( playlist_t *p_playlist )
}
else
{
#ifdef PLAYLIST_DEBUG
msg_Dbg
(
p_playlist
,
"view mode request"
);
#endif
p_new
=
p_playlist
->
request
.
p_item
;
i_skip
=
p_playlist
->
request
.
i_skip
;
...
...
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