d3d11converter: Don't use FIXME_OBJECT for non-GstObject

... and print ERROR messages for unexpected input/output formats

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1733>
This commit is contained in:
Seungha Yang 2022-02-16 02:11:53 +09:00 committed by GStreamer Marge Bot
parent efd19d7d2a
commit 8cf99d687b

View file

@ -863,8 +863,7 @@ setup_convert_info_yuv_to_rgb (GstD3D11Converter * self,
break; break;
} }
default: default:
GST_FIXME_OBJECT (self, GST_ERROR ("Unhandled input format %s",
"Unhandled input format %s",
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (in_info))); gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (in_info)));
return FALSE; return FALSE;
} }
@ -925,8 +924,7 @@ setup_convert_info_rgb_to_yuv (GstD3D11Converter * self,
break; break;
} }
default: default:
GST_FIXME_OBJECT (self, GST_ERROR ("Unhandled output format %s",
"Unhandled output format %s",
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (out_info))); gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (out_info)));
return FALSE; return FALSE;
} }
@ -1289,8 +1287,7 @@ setup_convert_info_rgb_to_gray (GstD3D11Converter * self,
info->ps_body[0] = g_strdup_printf (templ_RGB_to_GRAY_BODY); info->ps_body[0] = g_strdup_printf (templ_RGB_to_GRAY_BODY);
break; break;
default: default:
GST_FIXME_OBJECT (self, GST_ERROR ("Unhandled output format %s",
"Unhandled output format %s",
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (out_info))); gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (out_info)));
return FALSE; return FALSE;
} }
@ -1341,8 +1338,7 @@ setup_convert_info_yuv_to_gray (GstD3D11Converter * self,
break; break;
} }
default: default:
GST_FIXME_OBJECT (self, GST_ERROR ("Unhandled input format %s",
"Unhandled input format %s",
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (in_info))); gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (in_info)));
return FALSE; return FALSE;
} }
@ -1439,8 +1435,7 @@ setup_convert_info_gray_to_yuv (GstD3D11Converter * self,
g_strdup_printf (templ_GRAY_to_SEMI_PLANAR_CHROMA_BODY); g_strdup_printf (templ_GRAY_to_SEMI_PLANAR_CHROMA_BODY);
info->ps_output[1] = HLSL_PS_OUTPUT_ONE_PLANE_BODY; info->ps_output[1] = HLSL_PS_OUTPUT_ONE_PLANE_BODY;
default: default:
GST_FIXME_OBJECT (self, GST_ERROR ("Unhandled output format %s",
"Unhandled output format %s",
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (out_info))); gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (out_info)));
return FALSE; return FALSE;
} }