codecmap: don't expose more deprecated media types
authorWim Taymans <wtaymans@redhat.com>
Fri, 6 Jun 2014 14:19:07 +0000 (16:19 +0200)
committerWim Taymans <wtaymans@redhat.com>
Fri, 6 Jun 2014 14:54:06 +0000 (16:54 +0200)
x-xvid is deprecated, we don't want to expose it on the encoder, just
leave it only exposed on the decoder.

ext/libav/gstavcodecmap.c

index 6ef0af1..7f4177b 100644 (file)
@@ -991,8 +991,6 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
             gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/mpeg",
             "mpegversion", G_TYPE_INT, 4, "systemstream", G_TYPE_BOOLEAN, FALSE,
             NULL);
-        gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
-                encode, "video/x-xvid", NULL));
         if (encode) {
           gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
                   encode, "video/x-divx", "divxversion", G_TYPE_INT, 5, NULL));
@@ -1001,6 +999,8 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
                   encode, "video/x-divx", "divxversion", GST_TYPE_INT_RANGE, 4,
                   5, NULL));
           gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
+                  encode, "video/x-xvid", NULL));
+          gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
                   encode, "video/x-3ivx", NULL));
         }
       }