helpers/gst: Get bash completion options from gst-launch
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Tue, 6 Dec 2016 15:27:23 +0000 (16:27 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 6 Dec 2016 18:25:23 +0000 (18:25 +0000)
It is more likely that gst-launch is installed than ges-launch

Reported-by: Marianna Smidth Buschle <msb@qtec.com>
https://bugzilla.gnome.org/show_bug.cgi?id=775714

libs/gst/helpers/gst

index c8bcee8..bd34abf 100644 (file)
@@ -28,7 +28,7 @@ _gst_mandatory_argument ()
 {
        if [[ "$prev" != "$command" ]]
        then
-               COMPREPLY=( $(compgen -W "$(ges-launch-1.0 --help-all | grep -oh '[[:graph:]]*--[[:graph:]]*' | cut -d'=' -f1)" -- $cur) )
+               COMPREPLY=( $(compgen -W "$(gst-launch-1.0 --help-all | grep -oh '[[:graph:]]*--[[:graph:]]*' | cut -d'=' -f1)" -- $cur) )
        else
                COMPREPLY=("$cur")
        fi