From f20972c6a91648e513f0fae846dba0e625273f19 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 30 Aug 2013 13:51:47 +0200 Subject: [PATCH] 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. --- gst-libs/gst/riff/riff-media.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index 38f22ec66c..8c8f08ac38 100644 --- a/gst-libs/gst/riff/riff-media.c +++ b/gst-libs/gst/riff/riff-media.c @@ -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);