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:
Edward Hervey 2011-12-28 16:23:26 +01:00
parent 8d93f8edb3
commit 5f7e15fd6c

View file

@ -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"));