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
79386146
Commit
79386146
authored
Aug 16, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RC: fix parse_MRL prototype: unused parameter and const
parent
b9af6d19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/control/rc.c
modules/control/rc.c
+7
-7
No files found.
modules/control/rc.c
View file @
79386146
...
...
@@ -87,7 +87,7 @@ static void RegisterCallbacks( intf_thread_t * );
static
bool
ReadCommand
(
intf_thread_t
*
,
char
*
,
int
*
);
static
input_item_t
*
parse_MRL
(
intf_thread_t
*
,
char
*
);
static
input_item_t
*
parse_MRL
(
const
char
*
);
static
int
Input
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -1360,7 +1360,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
else
if
(
!
strcmp
(
psz_cmd
,
"add"
)
&&
newval
.
psz_string
&&
*
newval
.
psz_string
)
{
input_item_t
*
p_item
=
parse_MRL
(
p_intf
,
newval
.
psz_string
);
input_item_t
*
p_item
=
parse_MRL
(
newval
.
psz_string
);
if
(
p_item
)
{
...
...
@@ -1378,7 +1378,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
else
if
(
!
strcmp
(
psz_cmd
,
"enqueue"
)
&&
newval
.
psz_string
&&
*
newval
.
psz_string
)
{
input_item_t
*
p_item
=
parse_MRL
(
p_intf
,
newval
.
psz_string
);
input_item_t
*
p_item
=
parse_MRL
(
newval
.
psz_string
);
if
(
p_item
)
{
...
...
@@ -2024,20 +2024,20 @@ bool ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
* We don't check for '"' or '\'', we just assume that a ':' that follows a
* space is a new option. Should be good enough for our purpose.
*****************************************************************************/
static
input_item_t
*
parse_MRL
(
intf_thread_t
*
p_intf
,
char
*
psz_
mrl
)
static
input_item_t
*
parse_MRL
(
const
char
*
mrl
)
{
#define SKIPSPACE( p ) { while( *p == ' ' || *p == '\t' ) p++; }
#define SKIPTRAILINGSPACE( p, d ) \
{ char *e=d; while( e > p && (*(e-1)==' ' || *(e-1)=='\t') ){e--;*e=0;} }
input_item_t
*
p_item
=
NULL
;
char
*
psz_item
=
NULL
,
*
psz_item_mrl
=
NULL
,
*
psz_orig
;
char
*
psz_item
=
NULL
,
*
psz_item_mrl
=
NULL
,
*
psz_orig
,
*
psz_mrl
;
char
**
ppsz_options
=
NULL
;
int
i
,
i_options
=
0
;
if
(
!
psz_
mrl
)
return
0
;
if
(
!
mrl
)
return
0
;
psz_mrl
=
psz_orig
=
strdup
(
psz_
mrl
);
psz_mrl
=
psz_orig
=
strdup
(
mrl
);
if
(
!
psz_mrl
)
return
NULL
;
while
(
*
psz_mrl
)
...
...
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