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
340dfad4
Commit
340dfad4
authored
Nov 12, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few warnings
parent
ceba8717
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
include/vlc_demux.h
include/vlc_demux.h
+4
-4
modules/demux/playlist/dvb.c
modules/demux/playlist/dvb.c
+7
-6
No files found.
include/vlc_demux.h
View file @
340dfad4
...
...
@@ -137,15 +137,15 @@ static inline int demux2_Control( demux_t *p_demux, int i_query, ... )
* Miscellaneous helpers for demuxers
*************************************************************************/
static
inline
vlc_bool_t
isExtension
(
demux_t
*
p_demux
,
char
*
psz_requested
)
static
inline
vlc_bool_t
isExtension
(
demux_t
*
p_demux
,
c
onst
c
har
*
psz_requested
)
{
char
*
psz_ext
;
psz_ext
=
strrchr
(
p_demux
->
psz_path
,
'.'
);
const
char
*
psz_ext
=
strrchr
(
p_demux
->
psz_path
,
'.'
);
if
(
!
psz_ext
||
strcmp
(
psz_ext
,
psz_requested
)
)
return
VLC_FALSE
;
return
VLC_TRUE
;
}
static
inline
vlc_bool_t
isDemux
(
demux_t
*
p_demux
,
char
*
psz_requested
)
static
inline
vlc_bool_t
isDemux
(
demux_t
*
p_demux
,
const
char
*
psz_requested
)
{
if
(
!
p_demux
->
psz_demux
||
strcmp
(
p_demux
->
psz_demux
,
psz_requested
)
)
return
VLC_FALSE
;
...
...
modules/demux/playlist/dvb.c
View file @
340dfad4
...
...
@@ -133,8 +133,8 @@ static int Demux( demux_t *p_demux )
static
struct
{
char
*
psz_name
;
char
*
psz_option
;
c
onst
c
har
*
psz_name
;
c
onst
c
har
*
psz_option
;
}
dvb_options
[]
=
{
...
...
@@ -204,7 +204,7 @@ static int ParseLine( char *psz_line, char **ppsz_name,
while
(
psz_parse
)
{
char
*
psz_option
=
0
;
c
onst
c
har
*
psz_option
=
0
;
char
*
psz_end
=
strchr
(
psz_parse
,
':'
);
if
(
psz_end
)
{
*
psz_end
=
0
;
psz_end
++
;
}
...
...
@@ -260,9 +260,10 @@ static int ParseLine( char *psz_line, char **ppsz_name,
if
(
psz_option
&&
pppsz_options
&&
pi_options
)
{
psz_option
=
strdup
(
psz_option
);
char
*
psz_dup
=
strdup
(
psz_option
);
if
(
psz_dup
!=
NULL
)
INSERT_ELEM
(
*
pppsz_options
,
(
*
pi_options
),
(
*
pi_options
),
psz_option
);
psz_dup
);
}
psz_parse
=
psz_end
;
...
...
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