projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5765db5
)
qtmux: move subtitle layer above video and set alternate group
author
Matej Knopp
<matej.knopp@gmail.com>
Tue, 23 Sep 2014 17:06:18 +0000
(19:06 +0200)
committer
Thiago Santos
<thiagoss@osg.samsung.com>
Tue, 23 Sep 2014 18:20:37 +0000
(15:20 -0300)
layer -1 is above video, that is 0
And having all subtitles in alternate group 2 means that only one
should be selected at a time.
https://bugzilla.gnome.org/show_bug.cgi?id=737095
gst/isomp4/atoms.c
patch
|
blob
|
history
diff --git
a/gst/isomp4/atoms.c
b/gst/isomp4/atoms.c
index
f8bf050
..
b27abc7
100644
(file)
--- a/
gst/isomp4/atoms.c
+++ b/
gst/isomp4/atoms.c
@@
-3426,6
+3426,9
@@
atom_trak_set_subtitle_commons (AtomTRAK * trak, AtomsContext * context)
{
atom_trak_set_subtitle (trak, context);
trak->mdia.mdhd.time_info.timescale = 1000;
+
+ trak->tkhd.alternate_group = 2; /* same for all subtitles */
+ trak->tkhd.layer = -1; /* above video (layer 0) */
}
void