Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d8066413
Commit
d8066413
authored
Dec 16, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bda: little cleanup.
parent
358afe66
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
55 deletions
+51
-55
modules/access/bda/bda.c
modules/access/bda/bda.c
+8
-12
modules/access/bda/bdadefs.h
modules/access/bda/bdadefs.h
+42
-42
modules/access/bda/bdagraph.cpp
modules/access/bda/bdagraph.cpp
+1
-1
No files found.
modules/access/bda/bda.c
View file @
d8066413
...
...
@@ -413,7 +413,7 @@ static int ParsePath( access_t *p_access, const char* psz_module,
const
int
i_param_count
,
const
char
**
psz_param
,
const
int
*
i_type
)
{
const
int
MAXPARAM
=
40
;
BOOL
b_used
[
MAXPARAM
];
bool
b_used
[
MAXPARAM
];
char
*
psz_parser
;
char
*
psz_token
;
char
*
psz_value
;
...
...
@@ -429,7 +429,7 @@ static int ParsePath( access_t *p_access, const char* psz_module,
return
VLC_EGENERIC
;
}
for
(
int
i
=
0
;
i
<
i_param_count
;
i
++
)
b_used
[
i
]
=
FALSE
;
b_used
[
i
]
=
false
;
psz_parser
=
p_access
->
psz_path
;
if
(
strlen
(
psz_parser
)
<=
0
)
return
VLC_SUCCESS
;
...
...
@@ -446,7 +446,6 @@ static int ParsePath( access_t *p_access, const char* psz_module,
{
msg_Warn
(
p_access
,
"ParsePath: Unspecified parameter %s"
,
psz_token
);
if
(
psz_token
)
free
(
psz_token
);
return
VLC_EGENERIC
;
}
...
...
@@ -462,7 +461,6 @@ static int ParsePath( access_t *p_access, const char* psz_module,
if
(
i_this_param
<
0
)
{
msg_Warn
(
p_access
,
"ParsePath: Unknown parameter %s"
,
psz_token
);
if
(
psz_token
)
free
(
psz_token
);
return
VLC_EGENERIC
;
}
...
...
@@ -470,11 +468,10 @@ static int ParsePath( access_t *p_access, const char* psz_module,
{
msg_Warn
(
p_access
,
"ParsePath: Duplicate parameter %s"
,
psz_token
);
if
(
psz_token
)
free
(
psz_token
);
return
VLC_EGENERIC
;
}
b_used
[
i_this_param
]
=
TRUE
;
b_used
[
i_this_param
]
=
true
;
/* if "=" was found in token then value starts at
* psz_token + i_paramlen + 1
...
...
@@ -490,14 +487,13 @@ static int ParsePath( access_t *p_access, const char* psz_module,
psz_param
[
i_this_param
]
);
var_Set
(
p_access
,
psz_full_name
,
v_value
);
if
(
psz_token
)
free
(
psz_token
);
if
(
i_token_len
>=
strlen
(
psz_parser
)
)
break
;
psz_parser
+=
i_token_len
+
1
;
i_token_len
=
strcspn
(
psz_parser
,
":"
);
}
while
(
TRUE
);
while
(
true
);
return
VLC_SUCCESS
;
}
...
...
modules/access/bda/bdadefs.h
View file @
d8066413
modules/access/bda/bdagraph.cpp
View file @
d8066413
...
...
@@ -94,7 +94,7 @@ BDAGraph::BDAGraph( access_t* p_this ):
l_tuner_used
(
-
1
),
d_graph_register
(
0
)
{
b_ready
=
FALSE
;
b_ready
=
false
;
p_tuning_space
=
NULL
;
p_tune_request
=
NULL
;
p_media_control
=
NULL
;
...
...
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