Revert "videorate: Drop incoming buffers that are outside of the segment"
authorSebastian Dröge <sebastian@centricular.com>
Thu, 21 Apr 2022 08:41:15 +0000 (11:41 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 22 Apr 2022 23:05:57 +0000 (23:05 +0000)
This reverts commit 24fd80344dbc059b72e13d813ca82f414a9d6cce.

See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2186

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2254>

subprojects/gst-plugins-base/gst/videorate/gstvideorate.c

index 3c4fe0b41c2c8ab356f74dd86c46fbd931459f98..e12fe391cf7e4099215867017e84d6f355e2feed 100644 (file)
@@ -1521,10 +1521,6 @@ gst_video_rate_transform_ip (GstBaseTransform * trans, GstBuffer * buffer)
       goto invalid_buffer;
   }
 
-  if (!gst_segment_clip (&videorate->segment, GST_FORMAT_TIME, in_ts,
-          GST_CLOCK_TIME_NONE, NULL, NULL))
-    goto outside_segment;
-
   /* get the time of the next expected buffer timestamp, we use this when the
    * next buffer has -1 as a timestamp */
   last_ts = videorate->last_ts;
@@ -1791,13 +1787,6 @@ invalid_buffer:
     res = GST_BASE_TRANSFORM_FLOW_DROPPED;
     goto done;
   }
-
-outside_segment:
-  {
-    GST_WARNING_OBJECT (videorate, "Got buffer outide segment, discarding it");
-    res = GST_BASE_TRANSFORM_FLOW_DROPPED;
-    goto done;
-  }
 }
 
 static gboolean