]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugins-bad0-10.git/commitdiff
jpegparse: change caps/prio to be picked by decodebin2
authorHarinarayan Bhatta <harinarayan@ti.com>
Tue, 8 Apr 2014 10:15:31 +0000 (15:45 +0530)
committerHarinarayan Bhatta <harinarayan@ti.com>
Tue, 8 Apr 2014 10:15:31 +0000 (15:45 +0530)
Signed-off-by: Harinarayan Bhatta <harinarayan@ti.com>
gst/jpegformat/gstjpegformat.c
gst/jpegformat/gstjpegparse.c

index 50573db0cce1e44f2b21ba0ed6752c0f33e35fbc..67f25f09275e99dddcaf78e37832ec39cf1bcb6e 100644 (file)
@@ -30,7 +30,7 @@
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
-  if (!gst_element_register (plugin, "jpegparse", GST_RANK_NONE,
+  if (!gst_element_register (plugin, "jpegparse", GST_RANK_PRIMARY + 2,
           GST_TYPE_JPEG_PARSE))
     return FALSE;
   if (!gst_element_register (plugin, "jifmux", GST_RANK_SECONDARY,
index 1d4eaf9a2dd5b57ec2f2d76f009550da3b8a4c30..7e3997b6fbbbdd0b8512a0939790f1407e35e362 100644 (file)
@@ -70,7 +70,7 @@ static GstStaticPadTemplate gst_jpeg_parse_sink_pad_template =
 GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("image/jpeg, parsed = (boolean) false")
+    GST_STATIC_CAPS ("image/jpeg")
     );
 
 GST_DEBUG_CATEGORY_STATIC (jpeg_parse_debug);
@@ -145,7 +145,7 @@ gst_jpeg_parse_base_init (gpointer g_class)
       &gst_jpeg_parse_sink_pad_template);
   gst_element_class_set_details_simple (element_class,
       "JPEG stream parser",
-      "Video/Parser",
+      "Codec/Parser/Video",
       "Parse JPEG images into single-frame buffers",
       "Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>");
 }