From: Olivier CrĂȘte Date: Fri, 11 Jun 2010 22:49:02 +0000 (-0400) Subject: capsfilter: Remove transform_size X-Git-Tag: RELEASE-0.10.30~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24b41d01c8f31449eb3dd1ebf8499b526acb63ab;p=platform%2Fupstream%2Fgstreamer.git capsfilter: Remove transform_size GstBaseTransform now assumes that the size is the same if there is not transform_size. https://bugzilla.gnome.org/show_bug.cgi?id=621334 --- diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c index d5a109e..ea26438 100644 --- a/plugins/elements/gstcapsfilter.c +++ b/plugins/elements/gstcapsfilter.c @@ -74,9 +74,6 @@ static GstFlowReturn gst_capsfilter_transform_ip (GstBaseTransform * base, GstBuffer * buf); static GstFlowReturn gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input, gint size, GstCaps * caps, GstBuffer ** buf); -static gboolean gst_capsfilter_transform_size (GstBaseTransform * trans, - GstPadDirection direction, GstCaps * caps, guint size, - GstCaps * othercaps, guint * othersize); static void gst_capsfilter_base_init (gpointer g_class) @@ -118,8 +115,6 @@ gst_capsfilter_class_init (GstCapsFilterClass * klass) trans_class->transform_ip = GST_DEBUG_FUNCPTR (gst_capsfilter_transform_ip); trans_class->prepare_output_buffer = GST_DEBUG_FUNCPTR (gst_capsfilter_prepare_buf); - trans_class->transform_size = - GST_DEBUG_FUNCPTR (gst_capsfilter_transform_size); } static void @@ -268,17 +263,6 @@ gst_capsfilter_transform_caps (GstBaseTransform * base, return ret; } -static gboolean -gst_capsfilter_transform_size (GstBaseTransform * trans, - GstPadDirection direction, GstCaps * caps, guint size, - GstCaps * othercaps, guint * othersize) -{ - /* return the same size */ - *othersize = size; - return TRUE; -} - - static GstFlowReturn gst_capsfilter_transform_ip (GstBaseTransform * base, GstBuffer * buf) {