mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-06 01:19:38 +00:00
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:
parent
efd19d7d2a
commit
8cf99d687b
1 changed files with 5 additions and 10 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue