qtdemux: Refactor trun parsing
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sat, 11 Sep 2010 00:32:26 +0000 (21:32 -0300)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 3 Dec 2010 14:50:31 +0000 (15:50 +0100)
commitf48817522dbe1ba25ee7c63b43814af38b25cc50
treeac087edd7aeb5acf8b080c965f4fca39468890f4
parent400f22bfe39fb637e113e9fc57b53e0d3feb7c0a
qtdemux: Refactor trun parsing

The allocation of the samples can be placed out of the loop.
Makes the code clearer.

Also avoid relying on traf information as it is placed on the
end of the file and might not be acessible on push mode.
gst/qtdemux/qtdemux.c