Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2a9a62e5
Commit
2a9a62e5
authored
Feb 10, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't case bsearch() to unrelated types
parent
fe544788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+3
-4
No files found.
modules/mux/mpeg/ts.c
View file @
2a9a62e5
...
...
@@ -2273,13 +2273,12 @@ static void GetPMT( sout_mux_t *p_mux, sout_buffer_chain_t *c )
ts_stream_t
*
p_stream
=
(
ts_stream_t
*
)
p_mux
->
pp_inputs
[
i_stream
]
->
p_sys
;
int
i_pidinput
=
p_mux
->
pp_inputs
[
i_stream
]
->
p_fmt
->
i_id
;
int
*
p_usepid
=
bsearch
(
&
i_pidinput
,
p_sys
->
pmtmap
,
p_sys
->
i_pmtslots
,
sizeof
(
pmt_map_t
),
intcompare
);
pmt_map_t
*
p_usepid
=
bsearch
(
&
i_pidinput
,
p_sys
->
pmtmap
,
p_sys
->
i_pmtslots
,
sizeof
(
pmt_map_t
),
intcompare
);
dvbpsi_pmt_es_t
*
p_es
;
if
(
p_usepid
!=
NULL
)
p_es
=
dvbpsi_PMTAddES
(
&
p_sys
->
dvbpmt
[((
pmt_map_t
*
)
p_usepid
)
->
i_prog
],
p_es
=
dvbpsi_PMTAddES
(
&
p_sys
->
dvbpmt
[
p_usepid
->
i_prog
],
p_stream
->
i_stream_type
,
p_stream
->
i_pid
);
else
/* If there's an error somewhere, dump it to the first pmt */
...
...
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