Patchwork gstreamer1.0: pass rate of input segment to output segment in gstbaseparse.

login
register
mail settings
Submitter Wang Zidan
Date July 22, 2014, 6:49 a.m.
Message ID <1406011764-4955-4-git-send-email-b50113@freescale.com>
Download mbox | patch
Permalink /patch/76287/
State Accepted
Commit 8040b2df22a1a9ad010462c099d5252b96ab3071
Headers show

Comments

Wang Zidan - July 22, 2014, 6:49 a.m.
Signed-off-by: Wang Zidan <b50113@freescale.com>
---
 ...s-rate-of-input-segment-to-output-segment.patch |   32 ++++++++++++++++++++
 .../gstreamer/gstreamer1.0_1.2.4.bb                |    4 ++-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-pass-rate-of-input-segment-to-output-segment.patch
Ross Burton - July 22, 2014, 10:28 p.m.
On 22 July 2014 07:49, Wang Zidan <b50113@freescale.com> wrote:
> +Upstream Status: Backported

Presumably this made it into 1.4.0 so should we instead simply upgrade?

Ross
Otavio Salvador - July 25, 2014, 3:58 a.m.
Hello Ross,
Hello Zidan,

On Tue, Jul 22, 2014 at 7:28 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 22 July 2014 07:49, Wang Zidan <b50113@freescale.com> wrote:
>> +Upstream Status: Backported
>
> Presumably this made it into 1.4.0 so should we instead simply upgrade?

I fully agree.

Zidan, could you work on this?

Patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-pass-rate-of-input-segment-to-output-segment.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-pass-rate-of-input-segment-to-output-segment.patch
new file mode 100644
index 0000000..be6c834
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-pass-rate-of-input-segment-to-output-segment.patch
@@ -0,0 +1,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
+
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.2.4.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.2.4.bb
index 1204dd5..535b681 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.2.4.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.2.4.bb
@@ -6,7 +6,9 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \
 SRC_URI = " \
     http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
     file://0001-Fix-crash-with-gst-inspect.patch \
-    "
+    file://0001-pass-rate-of-input-segment-to-output-segment.patch \
+"
+
 SRC_URI[md5sum] = "74d8f674187a5f0ddf38da594c3998c3"
 SRC_URI[sha256sum] = "1e7ca67a7870a82c9ed51d51d0008cdbc550c41d64cc3ff3f9a1c2fc311b4929"
 S = "${WORKDIR}/gstreamer-${PV}"