After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776392 - gst-inspect: Add a '--types' option to filter elements by types to print
gst-inspect: Add a '--types' option to filter elements by types to print
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other All
: Normal enhancement
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-22 13:36 UTC by Thibault Saunier
Modified: 2016-12-23 11:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst-launch: Add a '--type' option to filter elements by types to print (4.90 KB, patch)
2016-12-22 13:36 UTC, Thibault Saunier
none Details | Review
Since V1: (4.91 KB, patch)
2016-12-22 13:38 UTC, Thibault Saunier
none Details | Review
gst-launch: Add a '--types' option to filter elements by types to print (4.91 KB, patch)
2016-12-22 19:14 UTC, Thibault Saunier
committed Details | Review

Description Thibault Saunier 2016-12-22 13:36:08 UTC
See commit message
Comment 1 Thibault Saunier 2016-12-22 13:36:13 UTC
Created attachment 342384 [details] [review]
gst-launch: Add a '--type' option to filter elements by types to print

This way the user can easily figure out what are the available audio
encoder for example doing:

  gst-inspect-1.0 --type Encoder/Audio
Comment 2 Thibault Saunier 2016-12-22 13:38:17 UTC
Created attachment 342385 [details] [review]
Since V1:

:%s/--type/--types/ in commit message
Comment 3 Tim-Philipp Müller 2016-12-22 13:45:16 UTC
Or maybe it should be --klass then ? (Not that I have a strong opinion on this, just throwing it out there :))
Comment 4 Thibault Saunier 2016-12-22 13:50:04 UTC
(In reply to Tim-Philipp Müller from comment #3)
> Or maybe it should be --klass then ? (Not that I have a strong opinion on
> this, just throwing it out there :))

Well 'klass' would not make sense for **most** people, and also we call it types in, for example 

>  GList * gst_element_factory_list_get_elements (GstElementFactoryListType type, GstRank minrank);

Or all the API apart from what we set as metadata, but the concept is the same.
Comment 5 Thibault Saunier 2016-12-22 19:14:52 UTC
Created attachment 342400 [details] [review]
gst-launch: Add a '--types' option to filter elements by types to print

This way the user can easily figure out what are the available audio
encoder for example doing:

  gst-inspect-1.0 --types Encoder/Audio
Comment 6 Thibault Saunier 2016-12-23 11:24:47 UTC
Attachment 342400 [details] pushed as 221d65a - gst-launch: Add a '--types' option to filter elements by types to print