qtdemux: Initialize QtDemuxStream.segment in its constructor
authorAlicia Boya García <aboya@igalia.com>
Thu, 29 Nov 2018 21:42:34 +0000 (22:42 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Fri, 30 Nov 2018 20:44:57 +0000 (20:44 +0000)
commit26cc201c8a42db596c494753d8fc47876874a900
tree3454baaea8d337b64a4fd9e280f1e90f0ffcf9cc
parent48a4fd4e5058a17ee5d592524322e3c6a7721e1c
qtdemux: Initialize QtDemuxStream.segment in its constructor

This patch moves the initialization of QtDemuxStream.segment from
gst_qtdemux_add_stream() to _create_stream(). This ensures the segment
is always initialized when the stream is created.

Otherwise the segment format is left as GST_FORMAT_UNDEFINED in the case
were a track is reparsed and qtdemux_reuse_and_configure_stream() is
called instead of gst_qtdemux_add_stream(). (See
qtdemux_expose_streams() in the non streams-aware case.)
gst/isomp4/qtdemux.c