diff -uNr ticodecplugin/src/gsttividdec.c ticodecplugin.new/src/gsttividdec.c --- ticodecplugin/src/gsttividdec.c 2009-09-05 00:04:51.000000000 -0500 +++ ticodecplugin.new/src/gsttividdec.c 2009-09-05 03:54:42.000000000 -0500 @@ -82,7 +82,7 @@ GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/mpeg, " - "mpegversion=(int){ 2, 4 }, " /* MPEG versions 2 and 4 */ + "mpegversion=(int){ 2, 4 }, " /* MPEG versions 2 and 4 */ "systemstream=(boolean)false, " "framerate=(fraction)[ 0, MAX ], " "width=(int)[ 1, MAX ], " @@ -90,7 +90,8 @@ "video/x-h264, " /* H264 */ "framerate=(fraction)[ 0, MAX ], " "width=(int)[ 1, MAX ], " - "height=(int)[ 1, MAX ]" + "height=(int)[ 1, MAX ] ;" + "video/x-xvid" /* XVID */ ) ); @@ -614,6 +615,11 @@ codec = gst_ticodec_get_codec("H.264 Video Decoder"); } + /* XVID Decode */ + else if (!strcmp(mime, "video/x-xvid")) { + codec = gst_ticodec_get_codec("MPEG4 Video Decoder"); + } + /* Mime type not supported */ else { GST_ERROR("stream type not supported"); diff -uNr ticodecplugin/src/gsttividdec2.c ticodecplugin.new/src/gsttividdec2.c --- ticodecplugin/src/gsttividdec2.c 2009-09-05 00:04:51.000000000 -0500 +++ ticodecplugin.new/src/gsttividdec2.c 2009-09-05 03:54:42.000000000 -0500 @@ -83,7 +83,7 @@ GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/mpeg, " - "mpegversion=(int){ 2, 4 }, " /* MPEG versions 2 and 4 */ + "mpegversion=(int){ 2, 4 }, " /* MPEG versions 2 and 4 */ "systemstream=(boolean)false, " "framerate=(fraction)[ 0, MAX ], " "width=(int)[ 1, MAX ], " @@ -91,7 +91,8 @@ "video/x-h264, " /* H264 */ "framerate=(fraction)[ 0, MAX ], " "width=(int)[ 1, MAX ], " - "height=(int)[ 1, MAX ]" + "height=(int)[ 1, MAX ] ;" + "video/x-xvid" /* XVID */ ) ); @@ -625,6 +626,11 @@ codec = gst_ticodec_get_codec("H.264 Video Decoder"); } + /* XVID Decode */ + else if (!strcmp(mime, "video/x-xvid")) { + codec = gst_ticodec_get_codec("MPEG4 Video Decoder"); + } + /* Mime type not supported */ else { GST_ERROR("stream type not supported");