summaryrefslogtreecommitdiff
path: root/recipes/ti/gstreamer-ti/gstreamer-ti-tracker-462.patch
blob: c115161dcc58d7088de9d7055e284aac92b9176a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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");