GList of features from a given GStreamer plugin??

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

GList of features from a given GStreamer plugin??

Greg Wunder
GList of features from a given GStreamer plugin??

How do I obtain a list of list of features per plugin for the current version of GStreamer?
I was hoping to get a GList object back from a function call if possible?

Thanks,
Greg



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GList of features from a given GStreamer plugin??

Tim-Philipp Müller-2
On Mon, 2010-03-29 at 16:11 -0400, Greg Wunder wrote:

> How do I obtain a list of list of features per plugin for the current
> version of GStreamer?
> I was hoping to get a GList object back from a function call if
> possible?

Something like this should work:

GstRegistry *registry;
GList *features;

registry = gst_registry_get_default ();
features = gst_registry_get_feature_list_by_plugin (registry,
    gst_plugin_get_name (plugin));

....

gst_plugin_feature_list_free (features);

 Cheers
  -Tim



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GList of features from a given GStreamer plugin??

Greg Wunder
RE: [gst-devel] GList of features from a given GStreamer plugin??

In your example, how do I fill the "plugin" variable in "gst_plugin_get_name (plugin)"?

-----Original Message-----
From: Tim-Philipp Müller [[hidden email]]
Sent: Tue 3/30/2010 5:42 AM
To: [hidden email]
Subject: Re: [gst-devel] GList of features from a given GStreamer plugin??

On Mon, 2010-03-29 at 16:11 -0400, Greg Wunder wrote:

> How do I obtain a list of list of features per plugin for the current
> version of GStreamer?
> I was hoping to get a GList object back from a function call if
> possible?

Something like this should work:

GstRegistry *registry;
GList *features;

registry = gst_registry_get_default ();
features = gst_registry_get_feature_list_by_plugin (registry,
    gst_plugin_get_name (plugin));

....

gst_plugin_feature_list_free (features);

 Cheers
  -Tim



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GList of features from a given GStreamer plugin??

Tim-Philipp Müller-2
On Tue, 2010-03-30 at 09:03 -0400, Greg Wunder wrote:

> In your example, how do I fill the "plugin" variable in
> "gst_plugin_get_name (plugin)"?

Oh, I assumed you had a GstPlugin * already (from e.g.
gst_default_registry_get_plugin_list()). If you just have a plugin name,
then you can do:

GstRegistry *registry;

registry = gst_registry_get_default ();

features = gst_registry_get_feature_list_by_plugin (registry,
     plugin_name);

directly of course (if that's also not what you're after, then you need
to explain a bit more what you want to do exactly).

Cheers
 -Tim


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GList of features from a given GStreamer plugin??

Greg Wunder
RE: [gst-devel] GList of features from a given GStreamer plugin??

That's my fault sorry.
Essentially I need to:

1) Obtain a GList of the current available plugins
2) Obtain a GList of the features of each plugin

This is to populate a GUI.
Let me know if more info is needed.

-----Original Message-----
From: Tim-Philipp Müller [[hidden email]]
Sent: Tue 3/30/2010 9:20 AM
To: [hidden email]
Subject: Re: [gst-devel] GList of features from a given GStreamer plugin??

On Tue, 2010-03-30 at 09:03 -0400, Greg Wunder wrote:

> In your example, how do I fill the "plugin" variable in
> "gst_plugin_get_name (plugin)"?

Oh, I assumed you had a GstPlugin * already (from e.g.
gst_default_registry_get_plugin_list()). If you just have a plugin name,
then you can do:

GstRegistry *registry;

registry = gst_registry_get_default ();

features = gst_registry_get_feature_list_by_plugin (registry,
     plugin_name);

directly of course (if that's also not what you're after, then you need
to explain a bit more what you want to do exactly).

Cheers
 -Tim


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GList of features from a given GStreamer plugin??

Ron McOuat
On 10-03-30 6:34 AM, Greg Wunder wrote:
RE: [gst-devel] GList of features from a given GStreamer plugin??

That's my fault sorry.
Essentially I need to:

1) Obtain a GList of the current available plugins
2) Obtain a GList of the features of each plugin

This is to populate a GUI.
Let me know if more info is needed.


The program gst-inspector is developed in Python as a graphical version of gst-inspect.

http://renestadler.de/projects/gst-inspector/


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel