【问题标题】:What are the valid license types for gstreamer plugins in order no to be blacklisted?为了不被列入黑名单,gstreamer 插件的有效许可证类型是什么?
【发布时间】:2022-01-05 09:21:06
【问题描述】:

我正在编写一个基于 gst-template 的 gstreamer 插件,它可以构建。 但是如果我把许可类型从LGPL改成别的(这是一个闭源的商业项目),gstreamer不喜欢它,把它加入黑名单。

在 meson.build 中:

cdata.set_quoted('GST_LICENSE', 'LGPL')

效果很好。

但是如果我将许可证更改为例如Commercial,它在gst-inspect 中会出现错误,如下所示:

WARN      GST_PLUGIN_LOADING gstplugin.c:501:gst_plugin_register_func: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstaaaasink.so" has invalid license "Commercial", not loading

我想看看我可以为这种 gstreamer 插件使用哪种许可证。

【问题讨论】:

    标签: plugins licensing gstreamer-1.0 meson-build


    【解决方案1】:

    好的,从源代码: https://github.com/GStreamer/gstreamer/blob/5e3bf0fff7205390de56747f950f726b456fc65d/subprojects/gstreamer/gst/gstplugin.c#L100

    static const gchar known_licenses[] = "LGPL\000"        /* GNU Lesser General Public License */
        "GPL\000"                   /* GNU General Public License */
        "QPL\000"                   /* Trolltech Qt Public License */
        "GPL/QPL\000"               /* Combi-license of GPL + QPL */
        "MPL\000"                   /* MPL 1.1 license */
        "MPL-2.0\000"               /* MPL 2.0 license */
        "BSD\000"                   /* 3-clause BSD license */
        "MIT/X11\000"               /* MIT/X11 license */
        "0BSD\000"                  /* Zero-Clause BSD */
        "Proprietary\000"           /* Proprietary license */
        GST_LICENSE_UNKNOWN;        /* some other license */
    

    我应该使用Proprietary

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-13
      • 2019-05-12
      • 1970-01-01
      • 1970-01-01
      • 2012-06-07
      • 2017-01-17
      • 2021-01-06
      • 2019-12-05
      相关资源
      最近更新 更多