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
32d207e4
Commit
32d207e4
authored
Jan 28, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: use make_URI() when adding item
parent
13eba405
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/gui/ncurses.c
modules/gui/ncurses.c
+9
-1
No files found.
modules/gui/ncurses.c
View file @
32d207e4
...
...
@@ -1516,6 +1516,13 @@ static void HandleEditBoxKey(intf_thread_t *p_intf, int key, int box)
}
else
if
(
len
)
{
char
*
psz_uri
=
make_URI
(
p_sys
->
psz_open_chain
,
NULL
);
if
(
psz_uri
==
NULL
)
{
p_sys
->
i_box_type
=
BOX_PLAYLIST
;
return
;
}
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
playlist_item_t
*
p_parent
=
p_sys
->
p_node
,
*
p_current
;
...
...
@@ -1532,11 +1539,12 @@ static void HandleEditBoxKey(intf_thread_t *p_intf, int key, int box)
p_parent
=
p_parent
->
p_parent
;
PL_UNLOCK
;
playlist_Add
(
p_playlist
,
p
_sys
->
psz_open_chain
,
NULL
,
playlist_Add
(
p_playlist
,
p
sz_uri
,
NULL
,
PLAYLIST_APPEND
|
PLAYLIST_GO
,
PLAYLIST_END
,
p_parent
->
p_input
==
p_playlist
->
p_local_onelevel
->
p_input
,
false
);
free
(
psz_uri
);
p_sys
->
b_plidx_follow
=
true
;
}
p_sys
->
i_box_type
=
BOX_PLAYLIST
;
...
...
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