ffdec: Update rank of ffdec_mpeg2video to SECONDARY to make it the default
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 May 2009 09:20:08 +0000 (11:20 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 May 2009 09:21:01 +0000 (11:21 +0200)
ffdec_mpeg2video is much faster, fixes bug #574461.

ext/ffmpeg/gstffmpegdec.c

index 90b4717..8d7bc04 100644 (file)
@@ -2714,6 +2714,12 @@ gst_ffmpegdec_register (GstPlugin * plugin)
       case CODEC_ID_COOK:
         rank = GST_RANK_PRIMARY;
         break;
+      case CODEC_ID_MPEG2VIDEO:
+        /* We have a good MPEG2 decoder in -ugly but this one is a lot
+         * faster, especially at high resolutions. See bug #574461
+         */
+        rank = GST_RANK_SECONDARY;
+        break;
       case CODEC_ID_DVVIDEO:
         /* we have a good dv decoder, fast on both ppc as well as x86. they say
            libdv's quality is better though. leave as secondary.