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
adf5a2dd
Commit
adf5a2dd
authored
Mar 14, 2005
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mp4.c: do not unselect ES at the end.
parent
e89c6a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
25 deletions
+18
-25
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+18
-25
No files found.
modules/demux/mp4/mp4.c
View file @
adf5a2dd
...
...
@@ -560,30 +560,28 @@ static int Demux( demux_t *p_demux )
i_track
++
)
{
mp4_track_t
*
tk
=
&
p_sys
->
track
[
i_track
];
vlc_bool_t
b
;
if
(
tk
->
b_selected
&&
tk
->
i_sample
>=
tk
->
i_sample_count
)
if
(
!
tk
->
b_ok
||
(
tk
->
b_selected
&&
tk
->
i_sample
>=
tk
->
i_sample_count
)
)
{
msg_Warn
(
p_demux
,
"track[0x%x] will be disabled"
,
tk
->
i_track_ID
);
MP4_TrackUnselect
(
p_demux
,
tk
);
continue
;
}
else
if
(
tk
->
b_ok
)
{
vlc_bool_t
b
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_GET_ES_STATE
,
tk
->
p_es
,
&
b
);
if
(
tk
->
b_selected
&&
!
b
)
{
MP4_TrackUnselect
(
p_demux
,
tk
);
}
else
if
(
!
tk
->
b_selected
&&
b
)
{
MP4_TrackSelect
(
p_demux
,
tk
,
MP4_GetMoviePTS
(
p_sys
)
);
}
es_out_Control
(
p_demux
->
out
,
ES_OUT_GET_ES_STATE
,
tk
->
p_es
,
&
b
);
if
(
tk
->
b_selected
)
{
i_track_selected
++
;
}
if
(
tk
->
b_selected
&&
!
b
)
{
MP4_TrackUnselect
(
p_demux
,
tk
);
}
else
if
(
!
tk
->
b_selected
&&
b
)
{
MP4_TrackSelect
(
p_demux
,
tk
,
MP4_GetMoviePTS
(
p_sys
)
);
}
if
(
tk
->
b_selected
)
{
i_track_selected
++
;
}
}
...
...
@@ -616,7 +614,7 @@ static int Demux( demux_t *p_demux )
{
mp4_track_t
*
tk
=
&
p_sys
->
track
[
i_track
];
if
(
!
tk
->
b_ok
||
!
tk
->
b_selected
)
if
(
!
tk
->
b_ok
||
!
tk
->
b_selected
||
tk
->
i_sample
>=
tk
->
i_sample_count
)
{
continue
;
}
...
...
@@ -2124,12 +2122,7 @@ static int MP4_TrackNextSample( demux_t *p_demux, mp4_track_t *p_track )
}
if
(
p_track
->
i_sample
>=
p_track
->
i_sample_count
)
{
/* we have reach end of the track so free decoder stuff */
msg_Warn
(
p_demux
,
"track[0x%x] will be disabled"
,
p_track
->
i_track_ID
);
MP4_TrackUnselect
(
p_demux
,
p_track
);
return
VLC_EGENERIC
;
}
/* Have we changed chunk ? */
if
(
p_track
->
i_sample
>=
...
...
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