mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
baseparse: perform bitrate handling and posting after newsegment sending
This commit is contained in:
parent
30feca6966
commit
6e1d65d788
1 changed files with 4 additions and 2 deletions
|
@ -1395,8 +1395,6 @@ gst_base_parse_push_buffer (GstBaseParse * parse, GstBuffer * buffer)
|
||||||
(parse->priv->framecount % parse->priv->update_interval) == 0)
|
(parse->priv->framecount % parse->priv->update_interval) == 0)
|
||||||
gst_base_parse_update_duration (parse);
|
gst_base_parse_update_duration (parse);
|
||||||
|
|
||||||
gst_base_parse_update_bitrates (parse, buffer);
|
|
||||||
|
|
||||||
if (GST_BUFFER_TIMESTAMP_IS_VALID (buffer))
|
if (GST_BUFFER_TIMESTAMP_IS_VALID (buffer))
|
||||||
last_start = last_stop = GST_BUFFER_TIMESTAMP (buffer);
|
last_start = last_stop = GST_BUFFER_TIMESTAMP (buffer);
|
||||||
if (last_start != GST_CLOCK_TIME_NONE
|
if (last_start != GST_CLOCK_TIME_NONE
|
||||||
|
@ -1498,6 +1496,10 @@ gst_base_parse_push_buffer (GstBaseParse * parse, GstBuffer * buffer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* update bitrates and optionally post corresponding tags
|
||||||
|
* (following newsegment) */
|
||||||
|
gst_base_parse_update_bitrates (parse, buffer);
|
||||||
|
|
||||||
if (G_UNLIKELY (parse->priv->pending_events)) {
|
if (G_UNLIKELY (parse->priv->pending_events)) {
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue