gl/colorconvert: optimise the same format case

simply return the input buffer unchanged
This commit is contained in:
Matthew Waters 2014-05-29 16:11:20 +10:00 committed by Tim-Philipp Müller
parent 4fe67d48be
commit 8cf3a3a4f4

View file

@ -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,