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
c033b745
Commit
c033b745
authored
Oct 01, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constify
parent
f9934c83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/demux/playlist/playlist.c
modules/demux/playlist/playlist.c
+5
-5
modules/demux/playlist/playlist.h
modules/demux/playlist/playlist.h
+1
-1
No files found.
modules/demux/playlist/playlist.c
View file @
c033b745
...
...
@@ -202,7 +202,7 @@ char *FindPrefix( demux_t *p_demux )
* Add the directory part of the playlist file to the start of the
* mrl, if the mrl is a relative file path
*/
char
*
ProcessMRL
(
c
har
*
psz_mrl
,
char
*
psz_prefix
)
char
*
ProcessMRL
(
c
onst
char
*
psz_mrl
,
const
char
*
psz_prefix
)
{
/* Check for a protocol name.
* for URL, we should look for "://"
...
...
@@ -222,8 +222,8 @@ char *ProcessMRL( char *psz_mrl, char *psz_prefix )
if
(
strchr
(
psz_mrl
,
':'
)
)
return
strdup
(
psz_mrl
);
/* This a relative path, prepend the prefix */
if
(
asprintf
(
&
psz_mrl
,
"%s%s"
,
psz_prefix
,
psz_mrl
)
!=
-
1
)
return
psz_mrl
;
else
return
NULL
;
char
*
ret
;
if
(
asprintf
(
&
ret
,
"%s%s"
,
psz_prefix
,
psz_mrl
)
==
-
1
)
ret
=
NULL
;
return
ret
;
}
modules/demux/playlist/playlist.h
View file @
c033b745
...
...
@@ -24,7 +24,7 @@
#include <vlc_input.h>
#include <vlc_playlist.h>
char
*
ProcessMRL
(
c
har
*
,
char
*
);
char
*
ProcessMRL
(
c
onst
char
*
,
const
char
*
);
char
*
FindPrefix
(
demux_t
*
);
int
Import_Old
(
vlc_object_t
*
);
...
...
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