mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue