Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
b19ef0df
Commit
b19ef0df
authored
Jun 08, 2017
by
Mark Nauwelaerts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskademux: maintain variable state when searching for position
... so skipping to next cluster happens efficiently
parent
6a6f7fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gst/matroska/matroska-demux.c
gst/matroska/matroska-demux.c
+2
-2
No files found.
gst/matroska/matroska-demux.c
View file @
b19ef0df
...
...
@@ -1811,6 +1811,7 @@ gst_matroska_demux_search_pos (GstMatroskaDemux * demux, GstClockTime time)
GstClockTime
otime
,
prev_cluster_time
,
current_cluster_time
,
cluster_time
;
gint64
opos
,
newpos
,
startpos
=
0
,
current_offset
;
gint64
prev_cluster_offset
=
-
1
,
current_cluster_offset
,
cluster_offset
;
guint64
cluster_size
=
0
;
const
guint
chunk
=
64
*
1024
;
GstFlowReturn
ret
;
guint64
length
;
...
...
@@ -1901,9 +1902,8 @@ retry:
* re-estimate if overshoot, otherwise next cluster and so on */
demux
->
common
.
offset
=
newpos
;
demux
->
cluster_time
=
cluster_time
=
GST_CLOCK_TIME_NONE
;
cluster_size
=
0
;
while
(
1
)
{
guint64
cluster_size
=
0
;
/* peek and parse some elements */
ret
=
gst_matroska_read_common_peek_id_length_pull
(
&
demux
->
common
,
GST_ELEMENT_CAST
(
demux
),
&
id
,
&
length
,
&
needed
);
...
...
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