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
This commit is contained in:
Wim Taymans 2002-06-02 20:10:46 +00:00
parent 7e1a122599
commit a872862453

View file

@ -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);