riff: Provide correct media type for MSS1 and MSS2

Windows Media Video Screen (WMV Screen) are video formats that
specilise in screencast content. This provides a correct media type
for them instead of just video/x-asf-unknown.
This commit is contained in:
Josep Torra 2013-08-30 13:51:47 +02:00
parent 5c1ffc9e92
commit f20972c6a9

View file

@ -528,6 +528,20 @@ gst_riff_create_video_caps (guint32 codec_fcc,
*codec_name = g_strdup ("DVCPro50 Video");
break;
case GST_MAKE_FOURCC ('M', 'S', 'S', '1'):
caps = gst_caps_new_simple ("video/x-wmv",
"wmvversion", G_TYPE_INT, 1, "format", G_TYPE_STRING, "MSS1", NULL);
if (codec_name)
*codec_name = g_strdup ("Microsoft Windows Media 7 Screen");
break;
case GST_MAKE_FOURCC ('M', 'S', 'S', '2'):
caps = gst_caps_new_simple ("video/x-wmv",
"wmvversion", G_TYPE_INT, 3, "format", G_TYPE_STRING, "MSS2", NULL);
if (codec_name)
*codec_name = g_strdup ("Microsoft Windows Media 9 Screen");
break;
case GST_MAKE_FOURCC ('W', 'M', 'V', '1'):
caps = gst_caps_new_simple ("video/x-wmv",
"wmvversion", G_TYPE_INT, 1, NULL);