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
c041421d
Commit
c041421d
authored
Oct 12, 2009
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist.c: change FindPrefix to include access on returned string
parent
7308685e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/demux/playlist/playlist.c
modules/demux/playlist/playlist.c
+12
-1
No files found.
modules/demux/playlist/playlist.c
View file @
c041421d
...
...
@@ -182,7 +182,17 @@ char *FindPrefix( demux_t *p_demux )
{
char
*
psz_file
;
char
*
psz_prefix
;
const
char
*
psz_path
=
p_demux
->
psz_path
;
char
*
psz_path
;
if
(
p_demux
->
psz_access
)
{
if
(
asprintf
(
&
psz_path
,
"%s://%s"
,
p_demux
->
psz_access
,
p_demux
->
psz_path
)
==
-
1
)
return
NULL
;
}
else
{
if
(
asprintf
(
&
psz_path
,
"%s"
,
p_demux
->
psz_path
)
==
-
1
)
return
NULL
;
}
#ifdef WIN32
psz_file
=
strrchr
(
psz_path
,
'\\'
);
...
...
@@ -194,6 +204,7 @@ char *FindPrefix( demux_t *p_demux )
psz_prefix
=
strndup
(
psz_path
,
psz_file
-
psz_path
+
1
);
else
psz_prefix
=
strdup
(
""
);
free
(
psz_path
);
return
psz_prefix
;
}
...
...
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