[Bug 690515] [PATCH] Bash tab-completion for gst-launch pipeline
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Dec 19 10:35:47 PST 2012
https://bugzilla.gnome.org/show_bug.cgi?id=690515
GStreamer | gstreamer (core) | git
Tim-Philipp Müller <t.i.m> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #231918|none |needs-work
status| |
--- Comment #4 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-12-19 18:35:41 UTC ---
(From update of attachment 231918)
>The original registry was in xml format (~/.gstreamer-*/registry.xml).
>A binary registry format was added in 2007 (commit ebf0c9d3) and made
>the default in 2008 (commit 3f39fd7e). It looks like you can still
>choose at "configure" time to use the xml registry instead.
You can in 0.10, but not in 1.0.
>This change to gstreamer-completion should work with either format
>because it parses the output of "gst-inspect" instead of reading the
>registry file directly.
>+_gst_launch() {
>+ local cur="${COMP_WORDS[COMP_CWORD]}"
>+ COMPREPLY=( $(compgen -W "$(_gst_elements)" -- "$cur") )
>+} &&
> complete -F _gst_launch -o default gst-launch
>
>+_gst_elements() {
>+ gst-inspect | grep -v 'Total count' | awk -F': +' '{print $2}'
This should be gst-inspect-1.0 and gst-launch-1.0 surely?
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list