1 From e70334442ba3bb046a6389bb3d8549323dc1e7f0 Mon Sep 17 00:00:00 2001
2 From: zhouming <zmafox@gmail.com>
3 Date: Wed, 7 May 2014 18:26:38 +0800
4 Subject: [PATCH] pass rate of input segment to output segment.
6 https://bugzilla.gnome.org/show_bug.cgi?id=729701
8 Commit - 2793f808ee7fbebc7de2c7b733c6e94dac6a099f in master branch
10 Upstream Status: Backported
12 Signed-off-by: <zmafox@gmail.com>
14 libs/gst/base/gstbaseparse.c | 2 ++
15 1 file changed, 2 insertions(+)
17 diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
18 index 4378cad..7579b5e 100644
19 --- a/libs/gst/base/gstbaseparse.c
20 +++ b/libs/gst/base/gstbaseparse.c
21 @@ -1012,6 +1012,8 @@ gst_base_parse_sink_event_default (GstBaseParse * parse, GstEvent * event)
23 gst_event_parse_segment (event, &in_segment);
24 gst_segment_init (&out_segment, GST_FORMAT_TIME);
25 + out_segment.rate = in_segment->rate;
26 + out_segment.applied_rate = in_segment->applied_rate;
28 GST_DEBUG_OBJECT (parse, "segment %" GST_SEGMENT_FORMAT, in_segment);