mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
gl/colorconvert: optimise the same format case
simply return the input buffer unchanged
This commit is contained in:
parent
ec8a617e8f
commit
a181460755
1 changed files with 3 additions and 0 deletions
|
@ -559,6 +559,9 @@ _gst_gl_color_convert_perform_unlocked (GstGLColorConvert * convert,
|
||||||
g_return_val_if_fail (convert != NULL, FALSE);
|
g_return_val_if_fail (convert != NULL, FALSE);
|
||||||
g_return_val_if_fail (inbuf, FALSE);
|
g_return_val_if_fail (inbuf, FALSE);
|
||||||
|
|
||||||
|
if (gst_video_info_is_equal (&convert->in_info, &convert->out_info))
|
||||||
|
return gst_buffer_ref (inbuf);
|
||||||
|
|
||||||
convert->inbuf = inbuf;
|
convert->inbuf = inbuf;
|
||||||
|
|
||||||
gst_gl_context_thread_add (convert->context,
|
gst_gl_context_thread_add (convert->context,
|
||||||
|
|
Loading…
Reference in a new issue