gl/colorconvert: optimise the same format case
simply return the input buffer unchanged
This commit is contained in:
parent
4fe67d48be
commit
8cf3a3a4f4
@ -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 (inbuf, FALSE);
|
||||
|
||||
if (gst_video_info_is_equal (&convert->in_info, &convert->out_info))
|
||||
return gst_buffer_ref (inbuf);
|
||||
|
||||
convert->inbuf = inbuf;
|
||||
|
||||
gst_gl_context_thread_add (convert->context,
|
||||
|
Loading…
x
Reference in New Issue
Block a user