Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
0aa91d61
Commit
0aa91d61
authored
Nov 02, 2015
by
François Grisez
Browse files
Fix crash when enabling video as the call is being recorded
parent
6d3a4d14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
src/videofilters/mkv.c
src/videofilters/mkv.c
+16
-0
No files found.
src/videofilters/mkv.c
View file @
0aa91d61
...
...
@@ -1015,6 +1015,22 @@ static ms_bool_t matroska_load_file(Matroska *obj) {
obj
->
nbClusters
++
;
}
}
/* Create an empty MetaSeek table if no has been found and create
the missing entries */
if
(
obj
->
metaSeek
==
NULL
)
obj
->
metaSeek
=
(
ebml_master
*
)
EBML_MasterAddElt
(
obj
->
segment
,
&
MATROSKA_ContextSeekHead
,
FALSE
);
if
(
obj
->
infoMeta
==
NULL
)
{
obj
->
infoMeta
=
(
matroska_seekpoint
*
)
EBML_MasterAddElt
(
obj
->
metaSeek
,
&
MATROSKA_ContextSeek
,
TRUE
);
MATROSKA_LinkMetaSeekElement
(
obj
->
infoMeta
,
(
ebml_element
*
)
obj
->
info
);
}
if
(
obj
->
tracksMeta
==
NULL
)
{
obj
->
tracksMeta
=
(
matroska_seekpoint
*
)
EBML_MasterAddElt
(
obj
->
metaSeek
,
&
MATROSKA_ContextSeek
,
TRUE
);
MATROSKA_LinkMetaSeekElement
(
obj
->
tracksMeta
,
(
ebml_element
*
)
obj
->
tracks
);
}
if
(
obj
->
cuesMeta
==
NULL
)
{
obj
->
cuesMeta
=
(
matroska_seekpoint
*
)
EBML_MasterAddElt
(
obj
->
metaSeek
,
&
MATROSKA_ContextSeek
,
TRUE
);
MATROSKA_LinkMetaSeekElement
(
obj
->
cuesMeta
,
(
ebml_element
*
)
obj
->
cues
);
}
return
TRUE
;
}
...
...
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