mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
basetransform: send delayed events earlier
Some elements (such as videorate) might push buffers early, for instance in in transform_ip. We want events (and in particular any NEWSEGMENT event) to be pushed before that. This fixes transmageddon wedging on converting a file starting with a non zero offset to Ogg. https://bugzilla.gnome.org/show_bug.cgi?id=660165
This commit is contained in:
parent
6637d983d3
commit
01172b8126
1 changed files with 2 additions and 2 deletions
|
@ -2517,6 +2517,8 @@ gst_base_transform_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
if (klass->before_transform)
|
if (klass->before_transform)
|
||||||
klass->before_transform (trans, buffer);
|
klass->before_transform (trans, buffer);
|
||||||
|
|
||||||
|
gst_base_transform_send_delayed_events (trans);
|
||||||
|
|
||||||
/* protect transform method and concurrent buffer alloc */
|
/* protect transform method and concurrent buffer alloc */
|
||||||
GST_BASE_TRANSFORM_LOCK (trans);
|
GST_BASE_TRANSFORM_LOCK (trans);
|
||||||
ret = gst_base_transform_handle_buffer (trans, buffer, &outbuf);
|
ret = gst_base_transform_handle_buffer (trans, buffer, &outbuf);
|
||||||
|
@ -2554,8 +2556,6 @@ gst_base_transform_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
}
|
}
|
||||||
trans->priv->processed++;
|
trans->priv->processed++;
|
||||||
|
|
||||||
gst_base_transform_send_delayed_events (trans);
|
|
||||||
|
|
||||||
ret = gst_pad_push (trans->srcpad, outbuf);
|
ret = gst_pad_push (trans->srcpad, outbuf);
|
||||||
} else {
|
} else {
|
||||||
gst_buffer_unref (outbuf);
|
gst_buffer_unref (outbuf);
|
||||||
|
|
Loading…
Reference in a new issue