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
c90ad6fd
Commit
c90ad6fd
authored
Dec 30, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: use directory:// URI when adding a directory to playlist
parent
d8b4a5b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/gui/ncurses.c
modules/gui/ncurses.c
+3
-2
No files found.
modules/gui/ncurses.c
View file @
c90ad6fd
...
...
@@ -667,11 +667,12 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
case
' '
:
if
(
p_sys
->
pp_dir_entries
[
p_sys
->
i_box_bidx
]
->
b_file
||
i_key
==
' '
)
{
int
i_size_entry
=
strlen
(
p_sys
->
psz_current_dir
)
+
int
i_size_entry
=
strlen
(
"directory://"
)
+
strlen
(
p_sys
->
psz_current_dir
)
+
strlen
(
p_sys
->
pp_dir_entries
[
p_sys
->
i_box_bidx
]
->
psz_path
)
+
2
;
char
*
psz_uri
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
i_size_entry
);
sprintf
(
psz_uri
,
"%s/%s"
,
p_sys
->
psz_current_dir
,
p_sys
->
pp_dir_entries
[
p_sys
->
i_box_bidx
]
->
psz_path
);
sprintf
(
psz_uri
,
"
directory://
%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_node
;
if
(
!
p_parent
)
...
...
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