qtdemux: mark segment as sent after pushing when moov is received
authorThiago Santos <thiagossantos@gmail.com>
Mon, 28 May 2018 18:01:42 +0000 (11:01 -0700)
committerThiago Santos <thiagossantos@gmail.com>
Mon, 28 May 2018 18:26:36 +0000 (11:26 -0700)
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

gst/isomp4/qtdemux.c

index 3509f47..bd3a00c 100644 (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);