mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
d3d11converter: Skip setup converter if input and output formats are equal
This commit is contained in:
parent
c9cb08fcd4
commit
622733ed0d
1 changed files with 4 additions and 0 deletions
|
@ -738,6 +738,10 @@ gst_d3d11_color_convert_set_info (GstD3D11BaseFilter * filter,
|
||||||
if (!self->can_convert)
|
if (!self->can_convert)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
/* don't need to create converter */
|
||||||
|
if (GST_VIDEO_INFO_FORMAT (in_info) == GST_VIDEO_INFO_FORMAT (out_info))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
self->in_d3d11_format =
|
self->in_d3d11_format =
|
||||||
gst_d3d11_format_from_gst (GST_VIDEO_INFO_FORMAT (in_info));
|
gst_d3d11_format_from_gst (GST_VIDEO_INFO_FORMAT (in_info));
|
||||||
if (!self->in_d3d11_format) {
|
if (!self->in_d3d11_format) {
|
||||||
|
|
Loading…
Reference in a new issue