Add mplayer -audio-demuxer and -sub-demuxer completions.

This commit is contained in:
Ville Skyttä 2010-09-28 18:50:38 +03:00
parent 66e35aa4a1
commit 729f6c4ea3
2 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,7 @@ bash-completion (2.x)
filename extension arguments in addition to exact case matches. filename extension arguments in addition to exact case matches.
* Fix known hosts completion for IPv6 addresses whose last 16 bits are digits * Fix known hosts completion for IPv6 addresses whose last 16 bits are digits
(Alioth: #312695, RedHat: #630658). (Alioth: #312695, RedHat: #630658).
* Improve mplayer and mencoder completions.
[ Freddy Vulto ] [ Freddy Vulto ]
* Added _tilde(), fix ~username completion (Alioth: #312613, Debian: #587095) * Added _tilde(), fix ~username completion (Alioth: #312613, Debian: #587095)

View File

@ -18,7 +18,8 @@ _mplayer()
_get_comp_words_by_ref cur prev _get_comp_words_by_ref cur prev
case $prev in case $prev in
-[av][cfo]|-[av]fm|-vop|-fstype|-demuxer|-o[av]c|-of|-profile) -[av][cfo]|-[av]fm|-vop|-fstype|-demuxer|-o[av]c|-of|-profile| \
-audio-demuxer|-sub-demuxer)
_mplayer_options_list $cmd $prev _mplayer_options_list $cmd $prev
return 0 return 0
;; ;;
@ -97,7 +98,7 @@ _mplayer()
return 0 return 0
;; ;;
-autoq|-autosync|-loop|-menu-root|-speed|-sstep|-aid|-alang| \ -autoq|-autosync|-loop|-menu-root|-speed|-sstep|-aid|-alang| \
-audo-demuxer|-sub-demuxer|-demuxer|-bandwidth|-cache|-chapter| \ -demuxer|-bandwidth|-cache|-chapter| \
-dvd|-dvdangle|-fps|-frames|-mc|-passwd|-user|-sb|-srate|-ss|-vcd| \ -dvd|-dvdangle|-fps|-frames|-mc|-passwd|-user|-sb|-srate|-ss|-vcd| \
-vi|-vid|-vivo|-ffactor|-sid|-slang|-spualign|-spuaa|-spugauss| \ -vi|-vid|-vivo|-ffactor|-sid|-slang|-spualign|-spuaa|-spugauss| \
-vobsubid|-delay|-bpp|-brightness|-contrast|-dfbopts|-display| \ -vobsubid|-delay|-bpp|-brightness|-contrast|-dfbopts|-display| \