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
d2dbed4c
Commit
d2dbed4c
authored
Jan 27, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: fix crashes when switching boxes
parent
ed37a76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
modules/gui/ncurses.c
modules/gui/ncurses.c
+15
-4
No files found.
modules/gui/ncurses.c
View file @
d2dbed4c
...
...
@@ -1485,7 +1485,7 @@ static bool HandleBrowseKey(intf_thread_t *p_intf, int key)
playlist_Add
(
p_playlist
,
psz_uri
,
NULL
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
p_parent
->
p_input
==
p_input
,
false
);
p_sys
->
i_box_type
=
BOX_PLAYLIST
;
BoxSwitch
(
p_sys
,
BOX_PLAYLIST
)
;
free
(
psz_uri
);
return
true
;
}
...
...
@@ -1625,13 +1625,24 @@ static void HandleCommonKey(intf_thread_t *p_intf, int key)
case
'/'
:
/* Search */
p_sys
->
psz_search_chain
[
0
]
=
'\0'
;
p_sys
->
b_plidx_follow
=
false
;
p_sys
->
i_before_search
=
p_sys
->
i_box_idx
;
p_sys
->
i_box_type
=
BOX_SEARCH
;
if
(
p_sys
->
i_box_type
==
BOX_PLAYLIST
)
{
p_sys
->
i_before_search
=
p_sys
->
i_box_idx
;
p_sys
->
i_box_type
=
BOX_SEARCH
;
}
else
{
p_sys
->
i_before_search
=
0
;
BoxSwitch
(
p_sys
,
BOX_SEARCH
);
}
return
;
case
'A'
:
/* Open */
p_sys
->
psz_open_chain
[
0
]
=
'\0'
;
p_sys
->
i_box_type
=
BOX_OPEN
;
if
(
p_sys
->
i_box_type
==
BOX_PLAYLIST
)
p_sys
->
i_box_type
=
BOX_OPEN
;
else
BoxSwitch
(
p_sys
,
BOX_OPEN
);
return
;
/* Navigation */
...
...
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