summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-09-15 13:40:58 +0200
committerThibault Saunier <tsaunier@gnome.org>2015-09-15 13:41:18 +0200
commitb6ad1b0c22de9d815a10ccf7471ca592bf25fc8c (patch)
treecb91afe0c0c4afe4777e349c1c6b4aba34f7f721
parent637106e2873c3ee32eb168dde464dac9971c942b (diff)
downloadgstreamer-plugins-bad-b6ad1b0c22de9d815a10ccf7471ca592bf25fc8c.tar.gz
pitch: Set seqnum on newly created segment event
https://bugzilla.gnome.org/show_bug.cgi?id=755012
-rw-r--r--ext/soundtouch/gstpitch.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc
index 7d2e6dc0d..2f33adf72 100644
--- a/ext/soundtouch/gstpitch.cc
+++ b/ext/soundtouch/gstpitch.cc
@@ -679,6 +679,7 @@ gst_pitch_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
static gboolean
gst_pitch_process_segment (GstPitch * pitch, GstEvent ** event)
{
+ gint seqnum;
gdouble out_seg_rate, our_arate;
gfloat stream_time_ratio;
GstSegment seg;
@@ -732,8 +733,10 @@ gst_pitch_process_segment (GstPitch * pitch, GstEvent ** event)
GST_LOG_OBJECT (pitch->sinkpad, "out segment %" GST_SEGMENT_FORMAT, &seg);
+ seqnum = gst_event_get_seqnum (*event);
gst_event_unref (*event);
*event = gst_event_new_segment (&seg);
+ gst_event_set_seqnum (*event, seqnum);
return TRUE;
}