Skip to content

Commit

Permalink
Add parent meta when using restart-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JassonRM committed Jul 26, 2022
1 parent 82a8382 commit 5034a92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gst/interpipe/gstinterpipesrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,11 @@ gst_inter_pipe_src_push_buffer (GstInterPipeIListener * iface,
"Calculated Buffer Timestamp (PTS): %" GST_TIME_FORMAT,
GST_TIME_ARGS (GST_BUFFER_PTS (buffer)));
} else if (GST_INTER_PIPE_SRC_RESTART_TIMESTAMP == src->stream_sync) {
parentbuffer = gst_buffer_ref (buffer);

This comment has been minimized.

Copy link
@mar0x

mar0x Oct 9, 2023

This line will make the buffer not writable and force buffer copy on the next line.

buffer = gst_buffer_make_writable (buffer);
gst_buffer_add_parent_buffer_meta (buffer, parentbuffer);
gst_buffer_unref (parentbuffer);

/* Remove the incoming timestamp to be generated according this basetime */
GST_BUFFER_PTS (buffer) = GST_CLOCK_TIME_NONE;
GST_BUFFER_DTS (buffer) = GST_CLOCK_TIME_NONE;
Expand Down

0 comments on commit 5034a92

Please sign in to comment.