[svace] Remove unused code in gstjoin.c
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Fri, 18 Nov 2022 04:37:13 +0000 (13:37 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Fri, 18 Nov 2022 07:32:21 +0000 (16:32 +0900)
- Remove unused member `discont` from gstjoin

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gst/join/gstjoin.c

index c296e4e..e0b85bd 100644 (file)
@@ -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)));