From 2eff8bf82d342fb441ffe795628aaa7dee512d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Sep 2012 13:39:17 +0200 Subject: [PATCH] Allow registering as static plugin with the GStreamer SDK API --- sys/androidmedia/gstamc.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c index 8ad24d57e5..4acf3cb4cd 100644 --- a/sys/androidmedia/gstamc.c +++ b/sys/androidmedia/gstamc.c @@ -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