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:
Wim Taymans 2012-12-11 16:46:18 +01:00
parent 6c99839d89
commit 7518960829

View file

@ -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);