How does GStreamer load static plugins?
Nikos Chantziaras
realnc at gmail.com
Mon Jun 3 10:35:22 PDT 2013
On 03/06/13 08:13, Sebastian Dröge wrote:
> On Mo, 2013-06-03 at 01:39 +0300, Nikos Chantziaras wrote:
>> On 03/06/13 00:28, Sebastian Dröge wrote:
>>> On So, 2013-06-02 at 13:58 +0300, Nikos Chantziaras wrote:
>>>> I'm not able to find any documentation on this. How would I use
>>>> GStreamer in an application that has GStreamer itself as well the
>>>> plugins linked-in statically? And for that matter, how would I link it
>>>> correctly? Are the pkg-config files enough, or should I instead
>>>> manually link-in every plugin?
>>>
>>> You need to manually link in every single plugin that is going to be
>>> used by your application and manually register it with
>>> GST_PLUGIN_STATIC_DECLARE() and GST_PLUGIN_STATIC_REGISTER().
>>
>> These macros don't seem to be defined anywhere. And indeed:
>>
>> grep -r GST_PLUGIN_STATIC /usr/include/gstreamer-0.10
>>
>> gives no results.
>
> Yes, they only exist in 1.0 and later. But the patches for this are also
> in the GStreamer SDK for 0.10.
Ah, thanks. I forgot that there's GStreamer 1.0 now. I do have 0.10.36
installed, from here:
http://gstreamer.freedesktop.org/src/gstreamer
I've now cloned the Git repo
(git://anongit.freedesktop.org/gstreamer/gstreamer) and switched to the
0.10 branch. The GST_PLUGIN_STATIC* macros aren't there either. I was
hoping the get the patches from there.
More information about the gstreamer-devel
mailing list