Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gst-plugins-base
> 0039-stridetransform-move-semantic-code-out-of-assert-lik.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0039-stridetransform-move-semantic-code-out-of-assert-lik.patch of Package gst-plugins-base
From adf99c63124823900d7337d021d8912ca978c42a Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Thu, 21 Jun 2012 15:17:53 +0000 Subject: [PATCH] stridetransform: move semantic code out of assert-like call --- gst/stride/gststridetransform.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/stride/gststridetransform.c b/gst/stride/gststridetransform.c index 0ff5814..a29177c 100644 --- a/gst/stride/gststridetransform.c +++ b/gst/stride/gststridetransform.c @@ -187,9 +187,11 @@ gst_stride_transform_get_unit_size (GstBaseTransform * base, GstStrideTransform *self = GST_STRIDE_TRANSFORM (base); GstVideoFormat format; gint width, height, rowstride; + gboolean ok; - g_return_val_if_fail (gst_video_format_parse_caps_strided (caps, &format, - &width, &height, &rowstride), FALSE); + ok = gst_video_format_parse_caps_strided (caps, &format, + &width, &height, &rowstride); + g_return_val_if_fail (ok, FALSE); *size = gst_video_format_get_size_strided (format, width, height, rowstride); -- 1.7.9.5