Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9b6a1da5
authored
2015-05-26 14:40:32 +0200
by
Jernej Fijačko
Committed by
David LaPalomento
2015-05-27 10:57:16 -0400
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Check if extradata exists before pushing it into tags
1 parent
63c045e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/h264-stream.js
src/h264-stream.js
View file @
9b6a1da
...
...
@@ -80,7 +80,7 @@
// Check if keyframe and the length of tags.
// This makes sure we write metadata on the first frame of a segment.
if
(
this
.
_
h264Frame
.
keyFrame
||
this
.
tags
.
length
===
0
)
{
if
(
this
.
_
oldExtraData
.
extraDataExists
()
&&
(
this
.
_h264Frame
.
keyFrame
||
this
.
tags
.
length
===
0
)
)
{
// Push extra data on every IDR frame in case we did a stream change + seek
this
.
tags
.
push
(
this
.
_oldExtraData
.
metaDataTag
(
this
.
_h264Frame
.
pts
));
this
.
tags
.
push
(
this
.
_oldExtraData
.
extraDataTag
(
this
.
_h264Frame
.
pts
));
...
...
Please
register
or
sign in
to post a comment