matroskademux: only send pending tags with newsegment events
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 3 Dec 2009 08:58:08 +0000 (08:58 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 4 Dec 2009 11:13:31 +0000 (11:13 +0000)
commitd0b25845ec6f2da545aeea550ad37d06d765f764
tree871f443cc0bac6d71fba4968a8b2291bfd86552f
parentff4ac9ddf6f65c98f0aabbd21bcd5cb5480de3e6
matroskademux: only send pending tags with newsegment events

Send pending tags only from the streaming thread, just after we've sent
the newsegment event, not with e.g. flush-start. This not only does the
right thing, but also makes sure we're not trampling over variables set
up in the streaming thread from the seeking thread in case someone tries
to issue a seek just as the demuxer is parsing the headers.

Fixes #601617. Spotted by Ognyan Tonchev.
gst/matroska/matroska-demux.c