riff: Provide correct media type for XSub

Xsub (fourcc DXSB) is a subpicture stream used for embeded
subtitles on divx files. This provides a correct media type
for them instead of just video/x-avi-unknown.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2013-07-10 13:27:21 -04:00
parent 4f2ddce751
commit 0a914f8fe2

View file

@ -877,6 +877,13 @@ gst_riff_create_video_caps (guint32 codec_fcc,
break;
case GST_MAKE_FOURCC ('D', 'X', 'S', 'B'):
caps = gst_caps_new_empty_simple ("subpicture/x-xsub");
if (codec_name)
*codec_name = g_strdup ("XSUB subpicture stream");
break;
default:
GST_WARNING ("Unknown video fourcc %" GST_FOURCC_FORMAT,
GST_FOURCC_ARGS (codec_fcc));