source elements and plugins

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

source elements and plugins

Russel Winder
I am planning creating a DAB source for GStreamer. Actually though this
is likely to be two:

1. one having no dependencies but Linux only.

2. one dependent on a library and some transitive libraries.

Would these two source elements be expected to be in separate plugins?

--
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[hidden email]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [hidden email]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: source elements and plugins

Tim Müller
On Wed, 2017-11-15 at 14:58 +0000, Russel Winder wrote:

Hi Russel,

> I am planning creating a DAB source for GStreamer. Actually though
> this is likely to be two:
>
> 1. one having no dependencies but Linux only.
>
> 2. one dependent on a library and some transitive libraries.
>
> Would these two source elements be expected to be in separate
> plugins?

"It depends". Is the source element generally useful without the
elements that would need that library?

If yes, it could make sense to have separate plugins.

If not, then it probably makes sense for them to both live in the same
plugin.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: source elements and plugins

Russel Winder
On Wed, 2017-11-15 at 15:20 +0000, Tim Müller wrote:

> On Wed, 2017-11-15 at 14:58 +0000, Russel Winder wrote:
>
> Hi Russel,
>
> > I am planning creating a DAB source for GStreamer. Actually though
> > this is likely to be two:
> >
> > 1. one having no dependencies but Linux only.
> >
> > 2. one dependent on a library and some transitive libraries.
> >
> > Would these two source elements be expected to be in separate
> > plugins?
>
> "It depends". Is the source element generally useful without the
> elements that would need that library?
The classic consultant reply. :-)

The two source elements should produce the same outputs on their output
pads given the same connected devices and settings, but via different
internal code. Though there may be some shared code.

> If yes, it could make sense to have separate plugins.
>
> If not, then it probably makes sense for them to both live in the
> same
> plugin.

I guess my question revolves around whether optional dependencies and a
single plugin is better than two plugins one with no dependencies and
one with mandatory dependencies.

Sadly I think I am just reasking the same question aren't I?

--
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[hidden email]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [hidden email]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (849 bytes) Download Attachment