mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
chopmydata: Transfer timestamps to output buffers
Allows using chopmydata as a simple repacketizer
This commit is contained in:
parent
593f7d520e
commit
085a34e4c7
1 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,9 @@ gst_chop_my_data_process (GstChopMyData * chopmydata, gboolean flush)
|
||||||
buffer =
|
buffer =
|
||||||
gst_adapter_take_buffer (chopmydata->adapter, chopmydata->next_size);
|
gst_adapter_take_buffer (chopmydata->adapter, chopmydata->next_size);
|
||||||
|
|
||||||
|
GST_BUFFER_PTS (buffer) = gst_adapter_prev_pts (chopmydata->adapter, NULL);
|
||||||
|
GST_BUFFER_DTS (buffer) = gst_adapter_prev_dts (chopmydata->adapter, NULL);
|
||||||
|
|
||||||
chopmydata->next_size = 0;
|
chopmydata->next_size = 0;
|
||||||
|
|
||||||
ret = gst_pad_push (chopmydata->srcpad, buffer);
|
ret = gst_pad_push (chopmydata->srcpad, buffer);
|
||||||
|
|
Loading…
Reference in a new issue