mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
matroskaparse: Make sure to send a segment event before dataflow
This commit is contained in:
parent
57c0f4d6b5
commit
4fdbf88a65
1 changed files with 7 additions and 1 deletions
|
@ -342,7 +342,7 @@ gst_matroska_parse_reset (GstElement * element)
|
|||
parse->next_cluster_offset = 0;
|
||||
parse->index_offset = 0;
|
||||
parse->seekable = FALSE;
|
||||
parse->need_newsegment = FALSE;
|
||||
parse->need_newsegment = TRUE;
|
||||
parse->building_index = FALSE;
|
||||
if (parse->seek_event) {
|
||||
gst_event_unref (parse->seek_event);
|
||||
|
@ -2546,6 +2546,12 @@ gst_matroska_parse_output (GstMatroskaParse * parse, GstBuffer * buffer,
|
|||
//gst_caps_replace (parse->caps, caps);
|
||||
gst_pad_set_caps (parse->srcpad, caps);
|
||||
|
||||
if (parse->need_newsegment) {
|
||||
gst_pad_push_event (parse->srcpad,
|
||||
gst_event_new_segment (&parse->common.segment));
|
||||
parse->need_newsegment = FALSE;
|
||||
}
|
||||
|
||||
buf = gst_buffer_copy (parse->streamheader);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue