concat: Properly forward the SEGMENT seqnum
authorEdward Hervey <edward@centricular.com>
Mon, 18 Jun 2018 14:29:18 +0000 (16:29 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 19 Jun 2018 05:27:33 +0000 (07:27 +0200)
plugins/elements/gstconcat.c

index c05a59b..6c18d7d 100644 (file)
@@ -569,6 +569,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
         ret = FALSE;
       } else {
         GstSegment segment = spad->segment;
+        GstEvent *topush;
 
         if (adjust_base) {
           /* We know no duration */
@@ -584,8 +585,10 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
               segment.stop += self->current_start_offset;
           }
         }
+        topush = gst_event_new_segment (&segment);
+        gst_event_set_seqnum (topush, gst_event_get_seqnum (event));
 
-        gst_pad_push_event (self->srcpad, gst_event_new_segment (&segment));
+        gst_pad_push_event (self->srcpad, topush);
       }
       break;
     }