[0.11] gst-plugins-bad: kate: forward return code from setting src pad caps

Wim Taymans wtay at kemper.freedesktop.org
Mon Sep 26 13:32:37 PDT 2011


Module: gst-plugins-bad
Branch: 0.11
Commit: 70be630427c47c3e9cfe1d98b5e9487fd76444ac
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=70be630427c47c3e9cfe1d98b5e9487fd76444ac

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Tue Sep 20 16:54:32 2011 +0100

kate: forward return code from setting src pad caps

https://bugzilla.gnome.org/show_bug.cgi?id=659606

---

 ext/kate/gstkatetiger.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ext/kate/gstkatetiger.c b/ext/kate/gstkatetiger.c
index 2916460..41da4db 100644
--- a/ext/kate/gstkatetiger.c
+++ b/ext/kate/gstkatetiger.c
@@ -677,6 +677,7 @@ gst_kate_tiger_video_set_caps (GstPad * pad, GstCaps * caps)
   GstKateTiger *tiger = GST_KATE_TIGER (gst_pad_get_parent (pad));
   GstVideoFormat format;
   gint w, h;
+  gboolean ret;
 
   GST_KATE_TIGER_MUTEX_LOCK (tiger);
 
@@ -692,10 +693,10 @@ gst_kate_tiger_video_set_caps (GstPad * pad, GstCaps * caps)
 
   GST_KATE_TIGER_MUTEX_UNLOCK (tiger);
 
-  gst_pad_set_caps (tiger->srcpad, caps);
+  ret = gst_pad_set_caps (tiger->srcpad, caps);
 
   gst_object_unref (tiger);
-  return TRUE;
+  return ret;
 }
 
 static gdouble



More information about the gstreamer-commits mailing list