Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gstreamer
> 0013-baseparse-Return-template-caps-instead-of-other-side.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0013-baseparse-Return-template-caps-instead-of-other-side.patch of Package gstreamer
From 4f64d80c6e0d3860351496a9a85afc0ec63dbbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege@collabora.co.uk> Date: Wed, 23 Nov 2011 13:42:56 +0100 Subject: [PATCH 13/14] baseparse: Return template caps instead of other side's peer caps if get_sink_caps vfunc is not implemented Using gst_pad_proxy_get_caps() breaks backwards compatibility with old parsers because it will propagate the other side's fields like "parsed" and "framed" and also breaks parser/converters. Fixes bug #664221. --- libs/gst/base/gstbaseparse.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index 46755e2..69a6c68 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -3853,13 +3853,12 @@ gst_base_parse_sink_getcaps (GstPad * pad) if (klass->get_sink_caps) caps = klass->get_sink_caps (parse); else - caps = gst_pad_proxy_getcaps (pad); + caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); gst_object_unref (parse); GST_LOG_OBJECT (parse, "sink getcaps returning caps %" GST_PTR_FORMAT, caps); return caps; - } static void -- 1.7.5.4