Disable exposing decoder/encoder using external library. Fixes #574746

This commit is contained in:
Edward Hervey 2009-03-10 21:11:43 +01:00
parent ca1321b224
commit 1e689f057f
2 changed files with 20 additions and 0 deletions

View file

@ -2548,6 +2548,16 @@ gst_ffmpegdec_register (GstPlugin * plugin)
goto next;
}
/* No decoders depending on external libraries (we don't build them, but
* people who build against an external ffmpeg might have them.
* We have native gstreamer plugins for all of those libraries anyway. */
if (!strncmp (in_plugin->name, "lib", 3)) {
GST_DEBUG
("Not using external library decoder %s. Use the gstreamer-native ones instead.",
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 */

View file

@ -1005,6 +1005,16 @@ gst_ffmpegenc_register (GstPlugin * plugin)
goto next;
}
/* No encoders depending on external libraries (we don't build them, but
* people who build against an external ffmpeg might have them.
* We have native gstreamer plugins for all of those libraries anyway. */
if (!strncmp (in_plugin->name, "lib", 3)) {
GST_DEBUG
("Not using external library encoder %s. Use the gstreamer-native ones instead.",
in_plugin->name);
goto next;
}
/* only encoders */
if (!in_plugin->encode) {
goto next;