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
b1788573
Commit
b1788573
authored
Jan 31, 2012
by
Denis Charmet
Committed by
Jean-Baptiste Kempf
Feb 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid infinite loop if eof happens during buffering
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a12ca580
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+2
-2
No files found.
modules/demux/mkv/mkv.cpp
View file @
b1788573
...
@@ -668,7 +668,7 @@ static int Demux( demux_t *p_demux)
...
@@ -668,7 +668,7 @@ static int Demux( demux_t *p_demux)
if
(
p_sys
->
i_pts
>=
p_sys
->
i_start_pts
)
if
(
p_sys
->
i_pts
>=
p_sys
->
i_start_pts
)
if
(
p_vsegment
->
UpdateCurrentToChapter
(
*
p_demux
)
)
if
(
p_vsegment
->
UpdateCurrentToChapter
(
*
p_demux
)
)
{
{
i_return
=
1
;
i_return
=
(
i_block_count
!=
0
)
;
break
;
break
;
}
}
...
@@ -694,7 +694,7 @@ static int Demux( demux_t *p_demux)
...
@@ -694,7 +694,7 @@ static int Demux( demux_t *p_demux)
/* TODO handle successive chapters with the same user_start_time/user_end_time
/* TODO handle successive chapters with the same user_start_time/user_end_time
*/
*/
p_sys
->
i_pts
=
p_chap
->
i_virtual_stop_time
;
p_sys
->
i_pts
=
p_chap
->
i_virtual_stop_time
;
p_sys
->
i_pts
++
;
// trick to avoid staying on segments with no duration and no content
p_sys
->
i_
start_pts
=
p_sys
->
i_
pts
++
;
// trick to avoid staying on segments with no duration and no content
i_return
=
1
;
i_return
=
1
;
}
}
...
...
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