avvid*: Don't expose V4L2 mem-to-mem decoder and encoders
authorEdward Hervey <edward@centricular.com>
Sat, 10 Feb 2018 14:18:11 +0000 (15:18 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 10 Feb 2018 14:18:11 +0000 (15:18 +0100)
It's not going to work without special handling. Mask for now.

ext/libav/gstavviddec.c
ext/libav/gstavvidenc.c

index 251823b..f911bce 100644 (file)
@@ -2314,6 +2314,13 @@ gst_ffmpegviddec_register (GstPlugin * plugin)
       goto next;
     }
 
+    if (g_str_has_suffix (in_plugin->name, "_v4l2m2m")) {
+      GST_DEBUG
+          ("Ignoring V4L2 mem-to-mem decoder %s. We can't handle this outside of ffmpeg",
+          in_plugin->name);
+      goto next;
+    }
+
     GST_DEBUG ("Trying plugin %s [%s]", in_plugin->name, in_plugin->long_name);
 
     /* no codecs for which we're GUARANTEED to have better alternatives */
index f4c2f40..36143f5 100644 (file)
@@ -1048,6 +1048,13 @@ gst_ffmpegvidenc_register (GstPlugin * plugin)
       goto next;
     }
 
+    if (g_str_has_suffix (in_plugin->name, "_v4l2m2m")) {
+      GST_DEBUG
+          ("Ignoring V4L2 mem-to-mem encoder %s. We can't handle this outside of ffmpeg",
+          in_plugin->name);
+      goto next;
+    }
+
     /* only video encoders */
     if (!av_codec_is_encoder (in_plugin)
         || in_plugin->type != AVMEDIA_TYPE_VIDEO)