mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
baseparse: pass DTS and PTS to handle_buffer
This makes it handle the timestamps correctly and avoids using a wrong timestamp for the output.
This commit is contained in:
parent
6c99839d89
commit
7518960829
1 changed files with 2 additions and 0 deletions
|
@ -2675,6 +2675,8 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
* since what is passed is tied to the adapter */
|
||||
tmpbuf = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY |
|
||||
GST_MEMORY_FLAG_NO_SHARE, (gpointer) data, av, 0, av, NULL, NULL);
|
||||
GST_BUFFER_DTS (tmpbuf) = dts;
|
||||
GST_BUFFER_PTS (tmpbuf) = pts;
|
||||
|
||||
/* keep the adapter mapped, so keep track of what has to be flushed */
|
||||
ret = gst_base_parse_handle_buffer (parse, tmpbuf, &skip, &flush);
|
||||
|
|
Loading…
Reference in a new issue