]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugin-ducati.git/commitdiff
playbin2 uses ducatijpegdec to play mjpeg streams
authorSubhajit Paul <subhajit_paul@ti.com>
Thu, 30 May 2013 10:12:57 +0000 (15:42 +0530)
committerSubhajit Paul <subhajit_paul@ti.com>
Thu, 30 May 2013 10:12:57 +0000 (15:42 +0530)
jpegdec and ducatijpegdec both were ranked primary in the
plugin registry. increasing the rank of ducatijpegdec by one
will make it the default plugin for playing JPEG and MJPEG
streams

src/gstducati.c

index bdd867fbfcaa968da241685ad3bdc9643d89fdcd..d14472d037e61462c36492af502fa7a5cc6e45a2 100644 (file)
@@ -76,7 +76,7 @@ plugin_init (GstPlugin * plugin)
       GST_TYPE_DUCATIMPEG2DEC) &&
       gst_element_register (plugin, "ducativc1dec", GST_RANK_PRIMARY,
       GST_TYPE_DUCATIVC1DEC) &&
-      gst_element_register (plugin, "ducatijpegdec", GST_RANK_PRIMARY,
+      gst_element_register (plugin, "ducatijpegdec", GST_RANK_PRIMARY + 1,
       GST_TYPE_DUCATIJPEGDEC) &&
       gst_element_register (plugin, "ducatih264enc", GST_RANK_PRIMARY + 1,
       GST_TYPE_DUCATIH264ENC) &&