Skip to content

Commit

Permalink
Revert PR #132
Browse files Browse the repository at this point in the history
  • Loading branch information
migueltaylor committed Feb 1, 2023
1 parent 0fcc1b8 commit cdbbd66
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gst/interpipe/gstinterpipesrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ gst_inter_pipe_src_push_buffer (GstInterPipeIListener * iface,
GstAppSrc *appsrc;
GstFlowReturn ret;
guint64 srcbasetime;
GstBuffer *parentbuffer;

src = GST_INTER_PIPE_SRC (iface);
appsrc = GST_APP_SRC (src);
Expand All @@ -643,10 +642,7 @@ gst_inter_pipe_src_push_buffer (GstInterPipeIListener * iface,
if (GST_INTER_PIPE_SRC_COMPENSATE_TIMESTAMP == src->stream_sync) {
guint64 difftime;

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

srcbasetime = gst_element_get_base_time (GST_ELEMENT (appsrc));

Expand Down Expand Up @@ -683,11 +679,6 @@ 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);
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 cdbbd66

Please sign in to comment.