h264parse: obtain correct upstream timestamp

... for optional downstream use.
This commit is contained in:
Mark Nauwelaerts 2010-06-23 10:38:54 +02:00
parent 4c7fd3c247
commit 21a6347b39

View file

@ -2076,8 +2076,8 @@ gst_h264_parse_chain_forward (GstH264Parse * h264parse, gboolean discont,
gboolean start;
guint8 *next_data;
outbuf = gst_adapter_take_buffer (h264parse->adapter, next_nalu_pos);
outbuf_dts = gst_adapter_prev_timestamp (h264parse->adapter, NULL); /* Better value for the second parameter? */
outbuf = gst_adapter_take_buffer (h264parse->adapter, next_nalu_pos);
/* packetized will have no next data, which serves fine here */
next_data = (guint8 *) gst_adapter_peek (h264parse->adapter, 6);