mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
flvmux: Save the current position in the output segment
https://bugzilla.gnome.org/show_bug.cgi?id=795332
This commit is contained in:
parent
168fae813b
commit
11297c3337
1 changed files with 6 additions and 0 deletions
|
@ -656,6 +656,12 @@ gst_flv_mux_release_pad (GstElement * element, GstPad * pad)
|
|||
static GstFlowReturn
|
||||
gst_flv_mux_push (GstFlvMux * mux, GstBuffer * buffer)
|
||||
{
|
||||
GstAggregator *agg = GST_AGGREGATOR (mux);
|
||||
GstAggregatorPad *srcpad = GST_AGGREGATOR_PAD (agg->srcpad);
|
||||
|
||||
if (GST_BUFFER_PTS_IS_VALID (buffer))
|
||||
srcpad->segment.position = GST_BUFFER_PTS (buffer);
|
||||
|
||||
/* pushing the buffer that rewrites the header will make it no longer be the
|
||||
* total output size in bytes, but it doesn't matter at that point */
|
||||
mux->byte_count += gst_buffer_get_size (buffer);
|
||||
|
|
Loading…
Reference in a new issue