From 3ea08ba3873fd73c476f253d1e0daee5b3c60fde Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Fri, 18 Nov 2022 13:37:13 +0900 Subject: [PATCH] [svace] Remove unused code in gstjoin.c - Remove unused member `discont` from gstjoin Signed-off-by: Yongjoo Ahn --- gst/join/gstjoin.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gst/join/gstjoin.c b/gst/join/gstjoin.c index c296e4e..e0b85bd 100644 --- a/gst/join/gstjoin.c +++ b/gst/join/gstjoin.c @@ -95,7 +95,6 @@ struct _GstJoinPad GstPad parent; guint group_id; /* Group ID from the last stream-start */ - gboolean discont; /* after switching we create a discont */ GstSegment segment; /* the current segment on the pad */ guint32 segment_seqnum; /* sequence number of the current segment */ @@ -162,7 +161,6 @@ static void gst_join_pad_reset (GstJoinPad * pad) { GST_OBJECT_LOCK (pad); - pad->discont = FALSE; gst_segment_init (&pad->segment, GST_FORMAT_UNDEFINED); GST_OBJECT_UNLOCK (pad); } @@ -405,14 +403,6 @@ gst_join_pad_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) sel); } - if (selpad->discont) { - buf = gst_buffer_make_writable (buf); - - GST_DEBUG_OBJECT (pad, "Marking discont buffer %p", buf); - GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT); - selpad->discont = FALSE; - } - /* forward */ GST_LOG_OBJECT (pad, "Forwarding buffer %p with timestamp %" GST_TIME_FORMAT, buf, GST_TIME_ARGS (GST_BUFFER_PTS (buf))); -- 2.7.4