qtdemux: mark segment as sent after pushing when moov is received

Otherwise we would try to send it a second time if the same moov is
received or in any other situation that might trigger segment sending.

https://bugzilla.gnome.org/show_bug.cgi?id=752603
This commit is contained in:
Thiago Santos 2018-05-28 11:01:42 -07:00
parent 0de143fa3e
commit ae7b531902

View file

@ -6901,6 +6901,8 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force)
demux->got_moov = TRUE;
demux->need_segment = TRUE;
gst_qtdemux_map_and_push_segments (demux, &demux->segment);
if (demux->exposed)
demux->need_segment = FALSE;
if (demux->moov_node_compressed) {
g_node_destroy (demux->moov_node_compressed);