mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
ffmpegdemux: post tags after the initial newsegment event
This commit is contained in:
parent
793e25cfc7
commit
048b0145a8
1 changed files with 7 additions and 7 deletions
|
@ -1162,13 +1162,6 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
|
|||
|
||||
gst_element_no_more_pads (GST_ELEMENT (demux));
|
||||
|
||||
/* grab the tags */
|
||||
tags = gst_ffmpegdemux_read_tags (demux);
|
||||
if (tags) {
|
||||
gst_element_post_message (GST_ELEMENT (demux),
|
||||
gst_message_new_tag (GST_OBJECT (demux), tags));
|
||||
}
|
||||
|
||||
/* transform some useful info to GstClockTime and remember */
|
||||
demux->start_time = gst_util_uint64_scale_int (demux->context->start_time,
|
||||
GST_SECOND, AV_TIME_BASE);
|
||||
|
@ -1202,6 +1195,13 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
|
|||
demux->segment.start, demux->segment.stop, demux->segment.time));
|
||||
}
|
||||
|
||||
/* grab the tags */
|
||||
tags = gst_ffmpegdemux_read_tags (demux);
|
||||
if (tags) {
|
||||
gst_element_post_message (GST_ELEMENT (demux),
|
||||
gst_message_new_tag (GST_OBJECT (demux), tags));
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
|
|
Loading…
Reference in a new issue