summaryrefslogtreecommitdiff
path: root/recipes/ti/gstreamer-ti/gstreamer-ti-tracker-462.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ti/gstreamer-ti/gstreamer-ti-tracker-462.patch')
-rw-r--r--recipes/ti/gstreamer-ti/gstreamer-ti-tracker-462.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-tracker-462.patch b/recipes/ti/gstreamer-ti/gstreamer-ti-tracker-462.patch
new file mode 100644
index 0000000000..c115161dcc
--- /dev/null
+++ b/recipes/ti/gstreamer-ti/gstreamer-ti-tracker-462.patch
@@ -0,0 +1,68 @@
+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");