Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gst-plugins-base
> 0009-fix-to-avoid-parsing-caps-on-every-frame.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0009-fix-to-avoid-parsing-caps-on-every-frame.patch of Package gst-plugins-base
From b2e3ab656ef0625f78c658d97c7edbdf8377e319 Mon Sep 17 00:00:00 2001 From: Rob Clark <rob@ti.com> Date: Fri, 27 Nov 2009 11:14:58 -0600 Subject: [PATCH 09/38] fix to avoid parsing caps on every frame --- gst/stride/gststridetransform.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gst/stride/gststridetransform.c b/gst/stride/gststridetransform.c index 03deeb1..143a9f7 100644 --- a/gst/stride/gststridetransform.c +++ b/gst/stride/gststridetransform.c @@ -197,11 +197,15 @@ gst_stride_transform_transform_size (GstBaseTransform *base, if (self->cached_caps[idx] != othercaps) { - if (!gst_stride_transform_get_unit_size (base, othercaps, - &(self->cached_size[idx]))) - { + guint sz; + if (!gst_stride_transform_get_unit_size (base, othercaps, &sz)) { return FALSE; } + if (self->cached_caps[idx]) { + gst_caps_unref (self->cached_caps[idx]); + } + self->cached_size[idx] = sz; + self->cached_caps[idx] = gst_caps_ref (othercaps); } *othersize = self->cached_size[idx]; -- 1.7.5.4