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
c1012538
Commit
c1012538
authored
Oct 11, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: extra checks for playlist code
parent
c38c9ecc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
modules/gui/ncurses.c
modules/gui/ncurses.c
+10
-2
No files found.
modules/gui/ncurses.c
View file @
c1012538
...
...
@@ -586,6 +586,8 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
p_item
=
p_parent
=
p_sys
->
pp_plist
[
p_sys
->
i_box_plidx
]
->
p_item
;
if
(
!
p_parent
)
p_parent
=
p_sys
->
p_playlist
->
p_root_onelevel
;
while
(
p_parent
->
p_parent
)
p_parent
=
p_parent
->
p_parent
;
playlist_Control
(
p_sys
->
p_playlist
,
PLAYLIST_VIEWPLAY
,
...
...
@@ -659,7 +661,10 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
sprintf
(
psz_uri
,
"%s/%s"
,
p_sys
->
psz_current_dir
,
p_sys
->
pp_dir_entries
[
p_sys
->
i_box_bidx
]
->
psz_path
);
playlist_item_t
*
p_parent
=
p_sys
->
p_playlist
->
status
.
p_node
;
while
(
p_parent
&&
p_parent
->
p_parent
)
if
(
!
p_parent
)
p_parent
=
p_sys
->
p_playlist
->
p_root_onelevel
;
while
(
p_parent
->
p_parent
)
p_parent
=
p_parent
->
p_parent
;
playlist_Add
(
p_sys
->
p_playlist
,
psz_uri
,
NULL
,
...
...
@@ -821,7 +826,10 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
if
(
p_playlist
&&
i_chain_len
>
0
)
{
playlist_item_t
*
p_parent
=
p_sys
->
p_playlist
->
status
.
p_node
;
while
(
p_parent
&&
p_parent
->
p_parent
)
if
(
!
p_parent
)
p_parent
=
p_sys
->
p_playlist
->
p_root_onelevel
;
while
(
p_parent
->
p_parent
)
p_parent
=
p_parent
->
p_parent
;
playlist_Add
(
p_playlist
,
p_sys
->
psz_open_chain
,
NULL
,
...
...
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