Allow registering as static plugin with the GStreamer SDK API

This commit is contained in:
Sebastian Dröge 2012-09-10 13:39:17 +02:00
parent b7a923234c
commit 2eff8bf82d

View file

@ -2536,9 +2536,18 @@ plugin_init (GstPlugin * plugin)
return TRUE;
}
#ifdef GST_PLUGIN_DEFINE2
GST_PLUGIN_DEFINE2 (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
androidmediacodec,
"Android MediaCodec plugin",
plugin_init,
PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
#else
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"androidmediacodec",
"",
"Android MediaCodec plugin",
plugin_init,
PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
#endif