pbutils/descriptions: Handle "video/x-raw" without specified format
Without having it raise an assertion, which is valid when asking for the description of the format.
This commit is contained in:
parent
8d93f8edb3
commit
5f7e15fd6c
@ -302,6 +302,8 @@ format_info_get_desc (const FormatInfo * info, const GstCaps * caps)
|
||||
const GstVideoFormatInfo *finfo;
|
||||
|
||||
str = gst_structure_get_string (s, "format");
|
||||
if (str == NULL)
|
||||
return g_strdup (_("Uncompressed video"));
|
||||
format = gst_video_format_from_string (str);
|
||||
if (format == GST_VIDEO_FORMAT_UNKNOWN)
|
||||
return g_strdup (_("Uncompressed video"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user