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
6094cb67
Commit
6094cb67
authored
Oct 12, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup MRLParse
parent
28dd999c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
modules/control/http/http.h
modules/control/http/http.h
+1
-1
modules/control/http/util.c
modules/control/http/util.c
+7
-8
No files found.
modules/control/http/http.h
View file @
6094cb67
...
@@ -127,7 +127,7 @@ char *ExtractURIString( const char *restrict psz_uri,
...
@@ -127,7 +127,7 @@ char *ExtractURIString( const char *restrict psz_uri,
int
TestURIParam
(
char
*
psz_uri
,
const
char
*
psz_name
);
int
TestURIParam
(
char
*
psz_uri
,
const
char
*
psz_name
);
/** This function parses a MRL */
/** This function parses a MRL */
input_item_t
*
MRLParse
(
intf_thread_t
*
,
char
*
psz
,
char
*
psz_name
);
input_item_t
*
MRLParse
(
intf_thread_t
*
,
c
onst
c
har
*
psz
,
char
*
psz_name
);
/** Return the first word from a string (works in-place) */
/** Return the first word from a string (works in-place) */
char
*
FirstWord
(
char
*
psz
,
char
*
new
);
char
*
FirstWord
(
char
*
psz
,
char
*
new
);
...
...
modules/control/http/util.c
View file @
6094cb67
...
@@ -820,14 +820,12 @@ static char *FirstOption( char *psz, char *new )
...
@@ -820,14 +820,12 @@ static char *FirstOption( char *psz, char *new )
return
NULL
;
return
NULL
;
}
}
input_item_t
*
MRLParse
(
intf_thread_t
*
p_intf
,
c
har
*
_psz
,
input_item_t
*
MRLParse
(
intf_thread_t
*
p_intf
,
c
onst
char
*
mrl
,
char
*
psz_name
)
char
*
psz_name
)
{
{
char
*
psz
=
strdup
(
_psz
);
char
*
psz
=
strdup
(
mrl
),
*
s_mrl
=
psz
,
*
s_temp
;
char
*
s_mrl
=
psz
;
if
(
psz
==
NULL
)
char
*
s_temp
;
return
NULL
;
input_item_t
*
p_input
=
NULL
;
/* extract the mrl */
/* extract the mrl */
s_temp
=
FirstOption
(
s_mrl
,
s_mrl
);
s_temp
=
FirstOption
(
s_mrl
,
s_mrl
);
if
(
s_temp
==
NULL
)
if
(
s_temp
==
NULL
)
...
@@ -835,7 +833,9 @@ input_item_t *MRLParse( intf_thread_t *p_intf, char *_psz,
...
@@ -835,7 +833,9 @@ input_item_t *MRLParse( intf_thread_t *p_intf, char *_psz,
s_temp
=
s_mrl
+
strlen
(
s_mrl
);
s_temp
=
s_mrl
+
strlen
(
s_mrl
);
}
}
p_input
=
input_item_New
(
p_intf
,
s_mrl
,
psz_name
);
input_item_t
*
p_input
=
input_item_New
(
p_intf
,
s_mrl
,
psz_name
);
if
(
p_input
==
NULL
)
return
NULL
;
s_mrl
=
s_temp
;
s_mrl
=
s_temp
;
/* now we can take care of the options */
/* now we can take care of the options */
...
@@ -852,7 +852,6 @@ input_item_t *MRLParse( intf_thread_t *p_intf, char *_psz,
...
@@ -852,7 +852,6 @@ input_item_t *MRLParse( intf_thread_t *p_intf, char *_psz,
s_mrl
=
s_temp
;
s_mrl
=
s_temp
;
}
}
free
(
psz
);
return
p_input
;
return
p_input
;
}
}
...
...
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