mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
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:
parent
7e1a122599
commit
a872862453
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue