Commit 32f8a04b authored by Nicola Murino's avatar Nicola Murino Committed by Vincent Penquerc'h
Browse files

matroskademux: avoid posting invalid duration for each frame

https://bugzilla.gnome.org/show_bug.cgi?id=666583
parent 4e2cf393
......@@ -3512,10 +3512,12 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
gst_segment_set_duration (&demux->common.segment, GST_FORMAT_TIME,
last_stop_end - demux->stream_start_time);
GST_OBJECT_UNLOCK (demux);
if (!demux->invalid_duration) {
gst_element_post_message (GST_ELEMENT_CAST (demux),
gst_message_new_duration (GST_OBJECT_CAST (demux),
GST_FORMAT_TIME, GST_CLOCK_TIME_NONE));
demux->invalid_duration = TRUE;
}
} else {
GST_OBJECT_UNLOCK (demux);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment