mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 04:45:36 +00:00
pbutils: add description for MSS1 and MSS2 windows media formats
This commit is contained in:
parent
f20972c6a9
commit
f22a2380ef
1 changed files with 8 additions and 1 deletions
|
@ -496,13 +496,20 @@ format_info_get_desc (const FormatInfo * info, const GstCaps * caps)
|
|||
return g_strdup ("Windows Media Audio");
|
||||
} else if (strcmp (info->type, "video/x-wmv") == 0) {
|
||||
gint ver = 0;
|
||||
const gchar *str;
|
||||
|
||||
gst_structure_get_int (s, "wmvversion", &ver);
|
||||
str = gst_structure_get_string (s, "format");
|
||||
|
||||
switch (ver) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
return g_strdup_printf ("Windows Media Video %d", ver + 6);
|
||||
if (str && strncmp (str, "MSS", 3)) {
|
||||
return g_strdup_printf ("Windows Media Video %d Screen", ver + 6);
|
||||
} else {
|
||||
return g_strdup_printf ("Windows Media Video %d", ver + 6);
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue