From a872862453ea28af9c972b9e0b0c50f9c5e2b333 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 2 Jun 2002 20:10:46 +0000 Subject: [PATCH] If format and source are the same, we allready know the result in the convert function Original commit message from CVS: If format and source are the same, we allready know the result in the convert function --- gst/gstpad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gstpad.c b/gst/gstpad.c index c265c5f443..9bfcb1c123 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2522,6 +2522,11 @@ gst_pad_convert (GstPad *pad, g_return_val_if_fail (dest_format, FALSE); g_return_val_if_fail (dest_value, FALSE); + if (src_format == *dest_format) { + *dest_value = src_value; + return TRUE; + } + rpad = GST_PAD_REALIZE (pad); g_return_val_if_fail (rpad, FALSE);