From patchwork Mon Jul 28 05:36:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: christian.braunersorensen@prevas.dk X-Patchwork-Id: 374085 X-Patchwork-Delegate: chbs@prevas.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id B065E14009B for ; Mon, 28 Jul 2014 15:36:21 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id D18203FB64 for ; Mon, 28 Jul 2014 07:36:16 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id DF0BA3FB64 for ; Mon, 28 Jul 2014 07:36:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=10338; q=dns/txt; s=ironport1; t=1406525775; x=1438061775; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bJRDXcjv8cJmOV91/yGjuX/b5wgum1Mrf5w9fm/IvC4=; b=DEvewi3alhicuO2SvMFFs4UICv/WqPwcFaQs5HwpvXKQ5vzrk23U34mX fKufuMpR4Ak41ryS9NLRhIjhkWAhM3jksf5CtL6RhSFM41iVfq8E42Vmu PXQWUdWC/hiF/HMVDfrH+SNWhruCVAQmj5l3O1JHogP85fA4mJPPyzALD 4=; X-IronPort-AV: E=Sophos;i="5.01,746,1400018400"; d="scan'208";a="4932533" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 28 Jul 2014 07:36:13 +0200 Received: from VMPREVAS1.prevas.se ([fe80::d582:e193:281c:3bc9]) by VMPREVAS3.prevas.se ([172.16.8.103]) with mapi id 14.02.0387.000; Mon, 28 Jul 2014 07:36:13 +0200 From: =?utf-8?B?Q2hyaXN0aWFuIEJyw6R1bmVyIFPDuHJlbnNlbg==?= To: Morten Thunberg Svendsen , "dev@oe-lite.org" Subject: =?utf-8?B?UkU6IFtQQVRDSCAxLzJdIGdzdHJlYW1lcjogVXBkYXRlIHRvIGJ1aWxkIA==?= =?utf-8?B?4bqDaXRoIGJpc29uID49IDMuMC4w?= Thread-Topic: =?utf-8?B?W1BBVENIIDEvMl0gZ3N0cmVhbWVyOiBVcGRhdGUgdG8gYnVpbGQg4bqDaXRo?= =?utf-8?Q?_bison_>=3D_3.0.0?= Thread-Index: AQHPXvdBbO1CQnBKsEaYXXrGAXwy2Ju1jbEx Date: Mon, 28 Jul 2014 05:36:12 +0000 Message-ID: References: , <21f34c02711b8b49cf3b00740cb6cbcc55305083.1398259308.git.Morten.ThunbergSvendsen@prevas.dk> In-Reply-To: <21f34c02711b8b49cf3b00740cb6cbcc55305083.1398259308.git.Morten.ThunbergSvendsen@prevas.dk> Accept-Language: en-GB, sv-SE, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.11.11] MIME-Version: 1.0 Cc: Morten Thunberg Svendsen X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org merged to master. thanks! /Christian diff --git a/recipes/gstreamer/gstreamer-0.10.36/0170-basetransform-Fix-handling-of-reverse-caps-negotiati.patch b/recipes/gstreamer/gstreamer-0.10.36/0170-basetransform-Fix-handling-of-reverse-caps-negotiati.patch new file mode 100644 index 0000000..bb444a2 --- /dev/null +++ b/recipes/gstreamer/gstreamer-0.10.36/0170-basetransform-Fix-handling-of-reverse-caps-negotiati.patch @@ -0,0 +1,38 @@ +From 58c9324e015352ad970fc6acf3a56ce30e214068 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= +Date: Fri, 24 May 2013 22:58:19 +0200 +Subject: [PATCH 170/172] basetransform: Fix handling of reverse caps + negotiation if this element alone is not enough to do the transform + +For example if downstream wants a new width/height and color format and +there's first a videoscale and then a ffmpegcolorspace. ffmpegcolorspace +could do the color format conversion, but not the width/height and the +other way around. +--- + libs/gst/base/gstbasetransform.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c +index e1fbaa9..25eb2b4 100644 +--- a/libs/gst/base/gstbasetransform.c ++++ b/libs/gst/base/gstbasetransform.c +@@ -1974,7 +1974,7 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size, + && !gst_caps_is_equal (sink_suggest, priv->sink_alloc); + } + +- if (new_caps && (suggest || !gst_caps_can_intersect (sink_suggest, templ))) { ++ if (new_caps && !gst_caps_can_intersect (sink_suggest, templ)) { + GstCaps *allowed, *peercaps; + + GST_DEBUG_OBJECT (trans, +@@ -2023,6 +2023,7 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size, + } + + gst_caps_replace (&sink_suggest, allowed); ++ size_suggest = 0; + gst_caps_unref (allowed); + + suggest = TRUE; +-- +1.9.rc1 + diff --git a/recipes/gstreamer/gstreamer-0.10.36/0171-parse-make-grammar.y-work-with-Bison-3.patch b/recipes/gstreamer/gstreamer-0.10.36/0171-parse-make-grammar.y-work-with-Bison-3.patch new file mode 100644 index 0000000..c46c05d --- /dev/null +++ b/recipes/gstreamer/gstreamer-0.10.36/0171-parse-make-grammar.y-work-with-Bison-3.patch @@ -0,0 +1,35 @@ +From 1c8c90e39e18829dfaec40fa5d3e14984cc3819f Mon Sep 17 00:00:00 2001 +From: Kerrick Staley +Date: Tue, 20 Aug 2013 23:59:29 -0700 +Subject: [PATCH 171/172] parse: make grammar.y work with Bison 3 + +YYLEX_PARAM is no longer supported in Bison 3. + +https://bugzilla.gnome.org/show_bug.cgi?id=706462 +--- + gst/parse/grammar.y | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y +index 24fc87b..7f9dd16 100644 +--- a/gst/parse/grammar.y ++++ b/gst/parse/grammar.y +@@ -26,7 +26,6 @@ + */ + + #define YYERROR_VERBOSE 1 +-#define YYLEX_PARAM scanner + + #define YYENABLE_NLS 0 + +@@ -648,6 +647,7 @@ static int yyerror (void *scanner, graph_t *graph, const char *s); + %right '.' + %left '!' '=' + ++%lex-param { void *scanner } + %parse-param { void *scanner } + %parse-param { graph_t *graph } + %pure-parser +-- +1.9.rc1 + diff --git a/recipes/gstreamer/gstreamer-0.10.36/0172-tests-remove-silly-test_fail_abstract_new-check.patch b/recipes/gstreamer/gstreamer-0.10.36/0172-tests-remove-silly-test_fail_abstract_new-check.patch new file mode 100644 index 0000000..f298cb5 --- /dev/null +++ b/recipes/gstreamer/gstreamer-0.10.36/0172-tests-remove-silly-test_fail_abstract_new-check.patch @@ -0,0 +1,62 @@ +From 1c9dde1722839b56f0b76cc2b717bcd4b817f1c9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= +Date: Wed, 8 Aug 2012 14:49:23 +0100 +Subject: [PATCH 172/172] tests: remove silly test_fail_abstract_new check + +Our check would make sure that GLib segfaults when +someone tries to instantiate an abstract type, which +is an extremely useful thing to check for. + +In newer GLibs this is fixed and we get an abort with +a g_error() now it seems, so let's just remove this +check entirely. +--- + tests/check/gst/gstobject.c | 25 ------------------------- + 1 file changed, 25 deletions(-) + +diff --git a/tests/check/gst/gstobject.c b/tests/check/gst/gstobject.c +index d5956db..e338f49 100644 +--- a/tests/check/gst/gstobject.c ++++ b/tests/check/gst/gstobject.c +@@ -72,19 +72,6 @@ gst_fake_object_get_type (void) + return fake_object_type; + } + +-#ifndef HAVE_OSX +-/* g_object_new on abstract GstObject should fail */ +-GST_START_TEST (test_fail_abstract_new) +-{ +- GstObject *object; +- +- ASSERT_CRITICAL (object = g_object_new (gst_object_get_type (), NULL)); +- fail_unless (object == NULL, "Created an instance of abstract GstObject"); +-} +- +-GST_END_TEST; +-#endif +- + /* g_object_new on GstFakeObject should succeed */ + GST_START_TEST (test_fake_object_new) + { +@@ -529,18 +516,6 @@ gst_object_suite (void) + tcase_add_test (tc_chain, test_fake_object_has_ancestor); + //tcase_add_checked_fixture (tc_chain, setup, teardown); + +- /* FIXME: GLib shouldn't crash here, but issue a warning and return a NULL +- * object, or at least g_error() and then abort properly ... (tpm) */ +-#ifndef HAVE_OSX +- /* Disabled for OS/X because a) it's a pretty silly test anyway and +- * b) different OS/X versions raise different signals and it isn't worth +- * the effort to try and detect which one should be producing which +- */ +- /* SEGV tests go last so we can debug the others */ +- if (g_getenv ("CK_FORK") == NULL || strcmp (g_getenv ("CK_FORK"), "no") != 0) +- tcase_add_test_raise_signal (tc_chain, test_fail_abstract_new, SIGSEGV); +-#endif +- + return s; + } + +-- +1.9.rc1 + diff --git a/recipes/gstreamer/gstreamer_0.10.36.oe b/recipes/gstreamer/gstreamer_0.10.36.oe index b274896..9a7b526 100644 --- a/recipes/gstreamer/gstreamer_0.10.36.oe +++ b/recipes/gstreamer/gstreamer_0.10.36.oe @@ -12,3 +12,6 @@ RDEPENDS_${PN}-dev:>USE_mad = " libmad-dev glib-libgio-dev" SRC_URI += "file://check_fix.patch" SRC_URI += "file://gst-inspect-check-error.patch" SRC_URI += "file://printf_fix.patch" +SRC_URI += "file://0170-basetransform-Fix-handling-of-reverse-caps-negotiati.patch" +SRC_URI += "file://0171-parse-make-grammar.y-work-with-Bison-3.patch" +SRC_URI += "file://0172-tests-remove-silly-test_fail_abstract_new-check.patch"