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
bbbc5b52
Commit
bbbc5b52
authored
Mar 22, 2014
by
Denis Charmet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't demux 5 blocks each time pf_demux is called
Close #2658
parent
020d6bb4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+3
-9
No files found.
modules/demux/mkv/mkv.cpp
View file @
bbbc5b52
...
...
@@ -705,7 +705,6 @@ static int Demux( demux_t *p_demux)
vlc_mutex_unlock
(
&
p_sys
->
lock_demuxer
);
return
0
;
}
int
i_block_count
=
0
;
int
i_return
=
0
;
for
(
;;
)
...
...
@@ -792,14 +791,9 @@ static int Demux( demux_t *p_demux)
BlockDecode
(
p_demux
,
block
,
simpleblock
,
p_sys
->
i_pts
,
i_block_duration
,
b_key_picture
||
b_discardable_picture
);
delete
block
;
i_block_count
++
;
// TODO optimize when there is need to leave or when seeking has been called
if
(
i_block_count
>
5
)
{
i_return
=
1
;
break
;
}
vlc_mutex_unlock
(
&
p_sys
->
lock_demuxer
);
return
1
;
}
vlc_mutex_unlock
(
&
p_sys
->
lock_demuxer
);
...
...
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