Skip to content

Commit

Permalink
Fix restart-ts for multiple listeners
Browse files Browse the repository at this point in the history
Fix invalid PTS/DTS for the case where there are multiple listeners with different stream-sync settings: fx one with restart-ts and the other with passthrough-ts.
The restart-ts branch was invalidating the PTS and DTS which would also affect the other branch since the buffer wasn't ensured as writable.
  • Loading branch information
mariannasb authored and Marianna Smidth Buschle committed Sep 30, 2021
1 parent 3f63a50 commit cdeda7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gst/interpipe/gstinterpipesrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ gst_inter_pipe_src_push_buffer (GstInterPipeIListener * iface,
GST_TIME_ARGS (GST_BUFFER_PTS (buffer)));
} else if (GST_INTER_PIPE_SRC_RESTART_TIMESTAMP == src->stream_sync) {
/* Remove the incoming timestamp to be generated according this basetime */
buffer = gst_buffer_make_writable (buffer);
GST_BUFFER_PTS (buffer) = GST_CLOCK_TIME_NONE;
GST_BUFFER_DTS (buffer) = GST_CLOCK_TIME_NONE;
}
Expand Down

0 comments on commit cdeda7f

Please sign in to comment.