From 7c638e06ff7e26de8b429966e80058f98cb73073 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 10 Jul 2015 12:49:01 -0400 Subject: [PATCH] depayloader: Use input segment start When there is no clock_base provided, the start position is set to 0 instead of the original segment start value. This would break synchronization if start was not 0. https://bugzilla.gnome.org/show_bug.cgi?id=752228 --- gst-libs/gst/rtp/gstrtpbasedepayload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/rtp/gstrtpbasedepayload.c b/gst-libs/gst/rtp/gstrtpbasedepayload.c index 596ec88..95d260d 100644 --- a/gst-libs/gst/rtp/gstrtpbasedepayload.c +++ b/gst-libs/gst/rtp/gstrtpbasedepayload.c @@ -654,7 +654,7 @@ create_segment_event (GstRTPBaseDepayload * filter, guint rtptime, priv = filter->priv; /* determining the start of the segment */ - start = 0; + start = filter->segment.start; if (priv->clock_base != -1 && position != -1) { GstClockTime exttime, gap; @@ -675,12 +675,12 @@ create_segment_event (GstRTPBaseDepayload * filter, guint rtptime, } /* determining the stop of the segment */ - stop = -1; + stop = filter->segment.stop; if (priv->npt_stop != -1) stop = start + (priv->npt_stop - priv->npt_start); if (position == -1) - position = 0; + position = start; running_time = gst_segment_to_running_time (&filter->segment, GST_FORMAT_TIME, start); -- 2.7.4