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
18c35cb8
Commit
18c35cb8
authored
Jan 23, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few BD warnings.
parent
e9bc965e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/access/bd/bd.c
modules/access/bd/bd.c
+9
-6
No files found.
modules/access/bd/bd.c
View file @
18c35cb8
...
...
@@ -591,8 +591,8 @@ static int SetPlayItem( demux_t *p_demux, int i_mpls, int i_play_item )
/* */
const
bool
b_same_mpls
=
i_mpls
==
p_demux
->
info
.
i_title
;
const
bool
b_same_play_item
=
b_same_mpls
&&
i_play_item
==
p_sys
->
i_play_item
;
//
const bool b_same_play_item = b_same_mpls &&
//
i_play_item == p_sys->i_play_item;
/* */
const
bd_mpls_t
*
p_mpls
=
p_sys
->
pp_mpls
[
i_mpls
];
...
...
@@ -633,7 +633,7 @@ static int SetPlayItem( demux_t *p_demux, int i_mpls, int i_play_item )
* - b_same_play_item is too strict, we should check the play_items connection.
* - a way to completely flush the demuxer is also needed !
*/
const
bool
b_same_parser
=
b_same_play_item
&&
false
;
//
const bool b_same_parser = b_same_play_item && false;
stream_t
*
p_parser
=
stream_DemuxNew
(
p_demux
,
"ts"
,
p_sys
->
p_out
);
if
(
!
p_parser
)
{
...
...
@@ -906,10 +906,13 @@ static int64_t GetMplsUniqueDuration( const bd_mpls_t *p_mpls )
}
return
i_length
;
}
static
int
SortMpls
(
void
**
pp_a
,
void
**
pp_
b
)
static
int
SortMpls
(
const
void
*
a
,
const
void
*
b
)
{
const
int64_t
i_length_a
=
GetMplsUniqueDuration
(
*
pp_a
);
const
int64_t
i_length_b
=
GetMplsUniqueDuration
(
*
pp_b
);
const
bd_mpls_t
*
const
*
pp_mpls_a
=
a
;
const
bd_mpls_t
*
const
*
pp_mpls_b
=
b
;
const
int64_t
i_length_a
=
GetMplsUniqueDuration
(
*
pp_mpls_a
);
const
int64_t
i_length_b
=
GetMplsUniqueDuration
(
*
pp_mpls_b
);
if
(
i_length_a
==
i_length_b
)
return
0
;
...
...
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