summaryrefslogtreecommitdiff
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-pass-rate-of-input-segment-to-output-segment.patch
blob: be6c834df26b7d43f3159f8b77cf0b69a45bc614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From e70334442ba3bb046a6389bb3d8549323dc1e7f0 Mon Sep 17 00:00:00 2001
From: zhouming <zmafox@gmail.com>
Date: Wed, 7 May 2014 18:26:38 +0800
Subject: [PATCH] pass rate of input segment to output segment.

https://bugzilla.gnome.org/show_bug.cgi?id=729701

Commit - 2793f808ee7fbebc7de2c7b733c6e94dac6a099f  in master branch

Upstream Status: Backported

Signed-off-by: <zmafox@gmail.com>
---
 libs/gst/base/gstbaseparse.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
index 4378cad..7579b5e 100644
--- a/libs/gst/base/gstbaseparse.c
+++ b/libs/gst/base/gstbaseparse.c
@@ -1012,6 +1012,8 @@ gst_base_parse_sink_event_default (GstBaseParse * parse, GstEvent * event)
 
       gst_event_parse_segment (event, &in_segment);
       gst_segment_init (&out_segment, GST_FORMAT_TIME);
+      out_segment.rate = in_segment->rate;
+      out_segment.applied_rate = in_segment->applied_rate;
 
       GST_DEBUG_OBJECT (parse, "segment %" GST_SEGMENT_FORMAT, in_segment);
 
-- 
1.7.9.5