Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7f614e92
Commit
7f614e92
authored
Sep 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duplicate: cleaning up
parent
5caa2bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
modules/stream_out/duplicate.c
modules/stream_out/duplicate.c
+12
-11
No files found.
modules/stream_out/duplicate.c
View file @
7f614e92
...
...
@@ -299,26 +299,27 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
/*****************************************************************************
* Divers
*****************************************************************************/
static
bool
NumInRange
(
char
*
psz_range
,
int
i_num
)
static
bool
NumInRange
(
c
onst
c
har
*
psz_range
,
int
i_num
)
{
char
*
psz
=
strchr
(
psz_range
,
'-'
);
c
onst
c
har
*
psz
=
strchr
(
psz_range
,
'-'
);
char
*
end
;
int
i_start
,
i_stop
;
i_start
=
strtol
(
psz_range
,
&
end
,
0
);
if
(
end
==
psz_range
)
i_start
=
i_num
;
if
(
psz
)
{
i_start
=
strtol
(
psz_range
,
&
end
,
0
);
if
(
end
==
psz_range
)
i_start
=
i_num
;
i_stop
=
strtol
(
psz
+
1
,
&
end
,
0
);
if
(
end
==
psz_range
)
i_stop
=
i_num
;
psz
++
;
i_stop
=
strtol
(
psz
,
&
end
,
0
);
if
(
end
==
psz
)
i_stop
=
i_num
}
else
{
i_start
=
i_stop
=
strtol
(
psz_range
,
NULL
,
0
);
}
i_stop
=
i_start
;
return
i_start
<=
i_num
&&
i_num
<=
i_stop
?
true
:
false
;
return
i_start
<=
i_num
&&
i_num
<=
i_stop
;
}
static
bool
ESSelected
(
es_format_t
*
fmt
,
char
*
psz_select
)
...
...
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